I have a Delphi application that connects to an oracle database.
When I try to log in as SYSDBA, I get the error:
ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
When I try to log in with a user of "SYS AS SYSDBA", I get the error:
ORA-01017: invalid username/password; logon denied
How can I log in as sysdba using a dbExpress connection?
See also this related post regarding ADO
I found nothing specific for special dbexpress driver. But try to add a connection parameter DBA privilege with the value SYSDBA.
Connection.Params.Append('DBA Privilege=SYSDBA');
I have no delphi installed to check the concrete syntax of the parameter name. Please try using an underscore instead of the blank.
This page shows several connection strings used in certain tools to connect to oracle database.
Specify the user as "Joseph as SYSDBA" instead of Joseph
I found a checklist but not sure whether it is useful or not. Just have a look.
Checklist
connect SYS as SYSDBA;
or you can use SYSOPER
the password will be what you specified at installation (same as SYSTEM)
refer:
http://docs.oracle.com/cd/E11882_01/server.112/e10897/users_secure.htm#ADMQS12004
Related
I am trying to connect to oracle instance. I succeed in SQL developer with the same account and password, but when i try in intellij it gives me ORA-01017 Invalid Username/Password.
Also please note that i succeed in connection in SQL Developer only if i choose to connect as dba for that USER. password and account is not wrong for sure..
According to the Oracle Database JDBC Developer's Guide you have
set the internal_logon connection property to SYSDBA or SYSOPER.
IntelliJ IDEA offers this in the "Advanced" Tab
To get the properties pre-filled here, you have to select or maybe even download a driver to use. (It's offered in the "General" tab on the bottom.)
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>;
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.
My problem is the same as reported in this post:
Oracle XE 11g the XE database was not found
I tryed to execute the stepd indicated for Michael (the last answer in the post), but after the process i can't make a login in sqlplus anymore. Only appears:
ORA-01017: invalid username/password; logon denied
I don't change my password and I could log in before. I don't know what i do more.
Thanks a lot!
You can login as a SYSDBA then change your password by doing this :
Open SQL plus commandline
write " connect / as SYSDBA"
alter user "youruser" identified by "newpassword";
Hi everyone i have problem with setting up connection between two oracle instances for replication. I can connect via sqlplus using string like `
SQL> connect root/12345#orcl1
but I can't create query:
CREATE DATABASE LINK remotedb
CONNECT TO root IDENTIFIED BY 12345
USING 'orcl1';
Also I can't set up it with Oracle database control. The error that I get is username or password of remote master isn't correct.
I don't suppose by any chance that the user "root" is a SYSDBA account on remote DB? If so, you cannot do this. Database links are not allowed to connect to SYSDBA accounts. The link will be created but you will get ORA-01017: invalid username/password.
I resolved the problem by enclosing password in double quotes