Oracle installation and login errors - oracle

I installed oracle 11g on my laptop and I am having two problems, I can not login to sqlplus it wants a password and login which I do not have. Is there any default user name and password I can use?
The other problem is that I can not connect to my localhost its saying
Enterprise Manager is not able to connect to the database instance. The state of the components are listed below
Database Instance
Host
Port
SID
Oracle Home
How can I overcome this?

To log in as sysdba, make sure you are connected as the Oracle user (whichever one you chose), and type:
$ sqlplus / as sysdba
No password required, as long as you're the right user.
To be able to connect to the database, it must be started, and the listener service must also be started. To check listener status:
$ lsnrctl status
To start/stop it, replace status by start or stop. If you installed named listeners, append the listener name to the lsnrctl commands above (i.e. put the listener name after the status/start/stop command).

I'm assuming you installed oracle on Windows:
If you have been able to connect to the database using sqlplus / as sysdba then your listener is up and you are connecting on the box where oracle is installed. If you installed oracle on windows, a user group called ora_dba will be created and your windows account willl be in that group. This grants you the sysdba role and allows you to log on to the database using sqlplus / as sysdba.
During istallation of the database you must have been prompted to enter a password for at least SYS and SYSTEM unlocked accounts.
To start enterprise manager try the command line:
emctl start dbconsole
or start the windows services snap in and check to see if the service OracleDBConsoleSID (SID is the ORACLE_SID for your database) is running. If not start it. When the service starts successfully, try running EM again.

Related

Oracle database 12.2.0 login

I cannot login into oracle database.
After installing Database 12.2.0 (named as TX) in command line I am typing:
sqlplus system/manager#tx
And it gives me an invalid user error.
I cannot login as a dba or sys and nothing else.
My service is running, after "tnsping tx" it looks ok.
After lsnrctl status it shows me that my instance TX is READY
Now, again, when I trying to login into tx database using system/manager it says it is wrong username/password. I didn't change anything during installation.
How can I solve this?
Are you sure that SYSTEM user's password is "manager"?
At operating system's command prompt, logged in as user who "owns" Oracle software (usually the user who installed Oracle database), run
sqlplus / as sysdba
Slash says that you're a trusted user and will let you in. Once you're connected, you can change password for any user in that database as
alter user system identified by your_new_password;

how to connect to local oracle database 19c using sysdba

i have install oracle 19c in my PC, but when i want to connect using SQL Plus i cannot login. i got error like this
the error is like my password wrong or cannot open.
when i install the installer not require password. when i try to use default password as password i got error. so how to fix my problem here ?? i have try search in internet how to fix it but still got error
i use Windows 10 for this Oracle19c
There's no default password any more; was until (I think) 10g.
If you're logged on to Windows 10 as user who installed Oracle software, then - at the operating system command prompt - run
sqlplus / as sysdba
/ means that Oracle trusts your operating system account as it is recognized as the "owner" of installed Oracle software and should let you in. Once you're logged into the database, change any password you want for any user you want, e.g.
alter user sys identified by some_new_password;
The TNS: Protocol adapter error usually means you don't have your envirnoment set correctly
Try defining the ORACLE_SID variable with your database name and then connect again /as sysdba
Also, i'd advise you to set your ORACLE_HOME too, if it's not already
set ORACLE_HOME=<YourOracleHomePAth>
set ORACLE_SID=<YourDBName>
There's no default password, the installer should've asked you to set a password for your SYS and SYSTEM users - if you don't remember them, you can always change them, once connected to the Database, by issuing the command
alter user sys identified by <NewPassword>;
alter user system identified by <NewPassword>;

Oracle on Docker :: Warning: You are no longer connected to ORACLE. SP2-0640: Not connected

In the screenshot below you can see how I can successfully connect to the database but the command is rejected because... I'm not connected to the database...
I login into SQL*Plus and I receive the confirmation I'm connected: Connected to: Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.3.0.0.0
Just to be sure I re-enter the connection: connect SYSTEM/SYSTEM#localhost:1521/ORCLCDB and I receive as a response Connected.
I follow the official instruction of Oracle Database Sample Schemas and I run #/home/oracle/db-sample-schemas-master/mksample.sql systempw syspw hrpw oepw pmpw ixpw shpw bipw users temp /var/opt/oracle/log/ localhost:1521/ORCLCDB and here is when things start to get nasty.
First I receive an ERROR: ORA-01017: invalid username/password; logon denied.
Then a Warning: You are no longer connected to ORACLE. SP2-0640: Not connected
How can it be, that is the Administrator password.
Should I grant anything else to this user?
The "no longer connected" warning is simply because the script issued its own connect that failed with ORA-01017. A connect attempt necessarily disconnects the current session first, so when the new connection fails there is no active connection at all. You have to reconnect successfully to be able to do anything useful.
The documentation you linked to says:
Start SQL*Plus and run the top level installation script as discussed in README.txt:
sqlplus system/systempw#connect_string
#mksample systempw syspw hrpw oepw pmpw ixpw shpw bipw users temp /your/path/to/log/ connect_string
Note: Use an absolute path and also append a trailing slash to the log directory name.
Use your current SYSTEM and SYS passwords, and also your actual default and temporary tablespace names. The passwords for the new HR, OE, PM, IX, SH and BI users will be set to the values you specify.
You have to supply your actual current password for the SYSTEM and SYS accounts, not the examples in that command; and sensible password for the new sample-schema accounts that will be created. For example, from your successful connect, the first argument to #mksample should be SYSTEM rather than the example systempw.
I was trying to load the sample schemas inside oracle database inside the docker container using the guide. What worked for me was to use localhost:1521/ORCLPDB1 as connection string in place of the SID. After this all of the tables got loaded.

What is the default login password for Oracle 12c?

I just installed Oracle 12C on my home machine and didn't remember it asking to create any credentials during installation. Now, when I'm trying to connect to sample ORCL database, it's prompting one and not letting me in without!
Log on to the Oracle DB server machine as a user who installed it, so that you can access the db as SYS using:
sqlplus / as sysdba
When you get connected, you will be able to reset password for all the other users, including SYSTEM and the other “built-in” users as bellow:
ALTER USER user_name IDENTIFIED BY new_password;

Is it possible to run Oracle on Windows XP without admin rights?

I have shared computer, where admin install Oracle XE. But I cannot e.g. create new user, because I have not rights in OS, afaik.
In Oracle documentation written that DBA should be member of administrator group.
Does exists way that I can manage local instance XE without admin rights?
I need start/stop database, connect/disconnect, kill session etc. It is need for test my Java application.
Thanks.
You don't need an OS user with admin right (once Oracle is installed and running).
Just connect as SYSDBA then you can create new Oracle users and manage the complete database..
(I do that on XP as well - working with regular user, but connecting as SYSTEM or SYS with the SYSDBA role if I need to configure something in Oracle)
Does exists way that I can manage local instance XE without admin rights?
Probably not ... if that's what the Oracle documentation says.
A sensible strategy would be to discuss your problem with the admins. Point out that it makes it difficult for you to do your job if you don't have access rights. If they won't grant you system Admin rights, ask them to suggest alternatives that will allow you to do your job.
It may be simply that they need to grant you additional rights in Oracle.
How about getting admin rights in a Virtual Machine? See virtualbox.org.
From XE manual here :
" On each platform, if the OS authentication user group does not already exist, it is automatically created when you install Oracle Database XE. In addition, upon installation on the Linux platform, the user account oracle is automatically created and placed in the dba group. Upon installation on the Windows platform, the user performing the installation is automatically added to the ORA_DBA group. On both platforms, you can add other host users to the OS authentication user group to enable them to connect to the database with the SYSDBA privilege. "
Since installation on windows needs admin user which I assume you are not, so it renders the automatic addition of that admin user to ORA_DBA group useless for you.
So what your admin can do immediately after XE installation on this shared machine is just add your non-admin OS user (local or domain level, whatever) to the newly created OS local group "ORA_DBA". Once this is done, you can simply open the sqlplus prompt and connect with SYSDBA privilege using your own non-admin user in future:
connect / as sysdba
However, you will still not be able to restart the Oracle service or the TNS listener, even if you are in the ORA_DBA group.

Resources