Sqlplus default login and password? - oracle

I just installed SQLPLUS via this Ubuntu documentation. What are the default login and password credentials? Following the documentation, I already tried sqlplus username/password#//dbhost:1521/SID I have investigated similar questions below, but none of the solutions have been successful for me.
https://askubuntu.com/questions/159939/how-to-install-sqlplus#
Oracle TNS: net service name is incorrecly specified
How come sqlplus not connecting?
I have tried testuser/password credentials
sqlplus64 username/password#//dbhost:1521/SID
SQL*Plus: Release 12.1.0.2.0 Production on Wed Oct 14 23:08:13 2015
Copyright (c) 1982, 2014, Oracle. All rights reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
Enter user-name: testuser
Enter password:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
Enter user-name:
How do I login, I'm sorry the comments don't make sense to me, could someone please write out an example, should I be 1sqlpus 64 username/password#//dbhost:1521/` ?

Related

Error while connecting to schema using hostname in OCI cloud

I'm trying to import the full database to a pluggable database in Linux OS. I am getting the below error while connecting to the schema.
sqlplus system#OCIPROD
SQL*Plus: Release 12.1.0.2.0 Production on Sun Aug 28 10:25:21 2022
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Enter password: ERROR: ORA-12514: TNS:listener does not currently know
of service requested in connect descripto
I tried pinging to TNS and listener services seem to be up.
Does anyone face this issue or can anyone help me to understand what could be the solution for this?

How to connect to the windows oracle database from WSL2

I have a Oracle 19c database installed in windows10 and also I have WSL2 enabled in same laptop.
I would like to access the database from my WSL2- ubuntu distro. is it possible?
I have installed instantclient and sqlplus package in wsl2 but when I try to connect using sqlplus it couldn't able to connect to the windows database.
can someone please help me to connect to that database from WSL2?
sqlplus hr/hr#//172.22.100.119/orcl
SQL*Plus: Release 21.0.0.0.0 - Production on Fri Jul 1 15:52:02 2022
Version 21.6.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
ERROR:
ORA-12170: TNS:Connect timeout occurred
Enter user-name:
sqlplus
SQL*Plus: Release 21.0.0.0.0 - Production on Fri Jul 1 15:50:31 2022
Version 21.6.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Enter user-name: spdorcl#orcl
Enter password:
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
Enter user-name:
sqlplus
SQL*Plus: Release 21.0.0.0.0 - Production on Fri Jul 1 15:48:54 2022
Version 21.6.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Enter user-name: SYSTEM
Enter password:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
Enter user-name: sys
Enter password:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified

I am trying to install Apex 5.1 locally but i couldn't connect as a sys user from Apex directory (ERROR: ORA-01031: insufficient privileges)

e:\apex.5\apex_5.1\apex>sqlplus no/log
sql>conn sys as sysdba
ERROR:
ORA-01031: insufficient privileges
so i couldn't continue to the next step of installing Apex.
You should really post what you exactly did, and how Oracle responded.
This is what your code produces in reality:
c:\Temp>sqlplus no/log
SQL*Plus: Release 11.2.0.2.0 Production on Sub Srp 10 13:19:01 2021
Copyright (c) 1982, 2014, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
That is, you're connecting to user named no whose password is log, and there's no such user (as Oracle responded). I presume you meant to use /nolog, which is something quite different.
Here's how it works on my database:
c:\Temp>sqlplus /nolog
SQL*Plus: Release 11.2.0.2.0 Production on Sub Srp 10 13:17:30 2021
Copyright (c) 1982, 2014, Oracle. All rights reserved.
SQL> conn sys as sysdba
Enter password:
Connected.
SQL>
As you can see, no problem in connecting to the database if I provide valid credentials. I have no idea what you did wrong, because, there are inconsistencies in what you say vs. what you show.
By the way, why installing Apex 5.1. I'd suggest the latest available version (21.1 at the moment).

localhost:5500/em Username/Password error -------Oracle18c Express Edition

I followed a YouTube Video, and installed Oracle 18c Express Edition, gave password for localhost during installation. After successful installation I tried to access https://localhost:5500/em but couldn't login because of username/password incorrect issue. I tried usernames like: sys and sysdba but failed.
It's not at all clear what you did. You said "gave password for localhost during installation. ", but 'localhost' is not an account and so doesn't have a password. 'localhost', is a network name, used to indicate where network requests are to be routed. Specifically, 'localhost' is the network name that equates to ip address 127.0.0.1, which is the local loopback address.
If you cannot remember the password you created for a database account, such as SYS or SYSTEM, you can log on locally as SYSDBA and change what you need. From a command prompt on the database server:
oracle:cdb$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Thu Jul 1 09:23:37 2021
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
SQL> alter user sys identified by "halftrack";
User altered.
SQL>

How to connect to Oracle using SQLPLUS | Oracle Instant Client | ORA-12545

Connecting successfully using SQL Developer but when i use sqlplus in Oracle Instant Client then i get following issues
Method 1:
[integrator#a-esb-app01 instantclient_19_8]$ ./sqlplus EGOINT#139.138.267.202:1521:EPROD
SQL*Plus: Release 19.0.0.0.0 - Production on Tue Dec 22 18:14:36 2020
Version 19.8.0.0.0
Copyright (c) 1982, 2020, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12545: Connect failed because target host or object does not exist
Enter user-name: egoint
Enter password:
ERROR:
ORA-12162: TNS:net service name is incorrectly specified
Method 2:
[integrator#a-esb-app01 instantclient_19_8]$ ./sqlplus EGOINT#139.138.267.202:1521/EPROD
SQL*Plus: Release 19.0.0.0.0 - Production on Tue Dec 22 18:18:13 2020
Version 19.8.0.0.0
Copyright (c) 1982, 2020, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-12514: TNS:listener does not currently know of service requested in connect
descriptor
Not Sure which of above is correct method and what is issue with connection string or any changes required on server side?
Note: I am able to connect another Oracle Server successfully. So no issue with InstantClient
Fixed using following:
./sqlplus egoint/egoint#(description=(address=(protocol=tcp)(host=139.138.267.202)(port=1521))(connect_data=(sid=EPROD)))

Resources