I installed Oracle 11gR2 on my linux server. When I want to login via sys user on my db, I enter "sys as sysdba" and when system give password , I push enter and I can login on my db with sqlplus.
But, when I try to connect on Windows with PL-SQL tool, system wants to password. If I didn't write password (I defined password, password is "sys"), I cannot login on my db.
Why?
When you connect on the same server you're being authenticated by the operating system; you can give any password you like, or it's more common to use / as sysdba.
When you connect from PL/SQL it'a a remote connection; operating system authentication isn't possible, so you're using password authentication.
When you install oracle, it creates OSDBA and OSOPER groups. Any members of this groups will have OS authentication and can logon without a password.
When you connect from another machine, it's a remote connection and you must enter the password.
More info in the documentation.
I had such a problem and even with Oracle 12c on my linux server and what i did was that each time I open a new terminal I first type
"export TWO_TASK="
(without the the quotations) followed by pressing
enter.
Next I could then go ahead to type sqlplus "/as sysdba" (now as it is with the quotations)
to connect and continue.
Related
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;
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>;
So I have this old Oracle database that I want to some migrate to some other db system.
You'd think that username and password is straight forward, but not when using something by Oracle.
So for sqlplus I just run the command sqlplus and it asks for username and password.
As the user I type in "orcl as sysdba" and then I type in the password. This works.
But SQL Developer doesn't accept that. It has a input field for username. And a select box with options like "standard", "SYSDBA" etc. No matter what I type in it always rejects the credentials.
It also asks for a SID, for which I just use ORCL, because it's the only thing I found where it doesn't complain about that.
I know that "orcl as sysdba" is the correct username for sqlplus. So what is the username for SQL Developer? Why is it not the same? Why does sqlplus not ask for the SID?
It's Oracle 12c from an old project. There is supposed to be a Flash tool at https://localhost:5500/em but the login also doesn't work there.
I have imported a table space from a dump that was made on the production server. I used Oracle 12c because the dump file indicated that this was the version used to dump the data.
Log into Oracle using SQL/Plus as SYSDBA and reset the password for a user account and then log into that account on SQL Developer using the newly reset password.
In SQL/Plus, from the account with the SYSDBA privileges, if you want to change the password off the my_user user then:
ALTER USER my_user IDENTIFIED BY MyNewPassword123;
I know that "orcl as sysdba" is the correct username for sqlplus. So what is the username for SQL Developer? Why is it not the same? Why does sqlplus not ask for the SID?
It is not a correct username. orcl is the username (or maybe the SID) and SYSDBA is the elevated level of privileges you wish to use once connected. You do not need to specify a username if you are connecting via SQL/Plus from the file system local to the database with SYSDBA privileges and can just use:
sqlplus / AS SYSDBA
and your access is authenticated using operating system authentication.
If you want to connect to a user with SYSDBA privileges then you probably want the default sys or system users (and to be careful what you do when connected as those users as you will have full control of the database and can do anything, including changing settings so you break the database).
Something like this:
If you want to find out what user you are connected as (in SQL/Plus) then:
SELECT USER FROM DUAL;
You can then use the same username that that outputs (and the appropriate password, which you can reset using the commands above if required) in SQL Developer.
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;
I have one user in my database, and he is locked. I want to unlock account, but for this I must log in as administrator, when I input in command prompt:
sqlplus "/as sysdba" I got the error ORA 01031: insufficient privileges. Say me please, how I can unlock my account..
If you've forgotten all your passwords (!?!?) You won't be able to do this remotely. Log on to the database server with an account that is a member of the OS 'dba' group ('ora_dba' on Windows). This will be the OS account used to install Oracle. Then you should be able to 'sqlplus / as sysdba'. That will connect you as 'sys', using OS authentication. The 'ora-1031' indicates you are trying to connect remotely with a password.