ORA-01017 OS Authentication
Hello,
I'm trying to get OS authentication to work for os (Solaris) user padss. I'm going through the steps below:
1. Create OS user padss
2. SQL> show parameter os_authent_prefix
NAME TYPE VALUE
os_authent_prefix string OPS$
3. As Oralcle OS user and sys:
CREATE USER "OPS$padss" IDENTIFIED EXTERNALLY;
GRANT CONNECT TO "OPS$padss";
Both are sucessful.
4. sqlnet.authentication_services = (NTS) in sqlnet.ora
5. log in as os user padss
6. sqlplus /
ORA-01017: invalid username/password; logon denied
Any ideas what is going wrong? I think that I've followed the steps correctly, but clearly I've missed something.
Many thanks
Hi,
It seems to be working fine for me
[oracle@localhost ~]$ su - oracle
Password:
[oracle@localhost ~]$ sqlplus
SQL*Plus: Release 11.1.0.6.0 - Production on Tue May 4 16:04:21 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Enter user-name: / as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show parameter os
NAME TYPE VALUE
db_lost_write_protect string NONE
diagnostic_dest string /u01/app/oracle
optimizer_index_cost_adj integer 100
os_authent_prefix string ops$
os_roles boolean FALSE
remote_os_authent boolean FALSE
remote_os_roles boolean FALSE
timed_os_statistics integer 0
SQL> create user ops$oracle identified externally;
User created.
SQL> grant connect,recource to ops$oracle;
grant connect,recource to ops$oracle
ERROR at line 1:
ORA-01919: role 'RECOURCE' does not exist
SQL> grant connect,resource to ops$oracle;
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost ~]$ cd $ORACLE_HOME
[oracle@localhost db_1]$ cd network/
[oracle@localhost network]$ cd admin/
[oracle@localhost admin]$ vim sqlnet.ora
[oracle@localhost admin]$ sqlplus
SQL*Plus: Release 11.1.0.6.0 - Production on Tue May 4 16:06:11 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Enter user-name: /
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> show user
USER is "OPS$ORACLE"
SQL> Contents of sqlnet.ora file
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)Please check that you are connecting with correct OS user.
Regards
Similar Messages
-
ORA-01017: OS Authentication on Red Hat Linux 6.2 and Oracle 11gR2
Hello
I am trying to eanble OS Authentication on Oracle 11.2.0.3 installed on a Red Hat Linux Server 6.2 and it just does not work. When I try to login I always get the error ORA-01017: invalid username/password; logon denied
I have set the following Oracle parameters:
remote_os_authent = TRUE
os_authent_prefix = OPS$
and i have created a linux user "oracle" and the Oracle user "OPS$oracle".
I know that the parameter remote_os_authent in 11g is depricated but i thought that it still should work, just an error messages occures then i start the database but it runs as usual, just the OS Authentication does not seem to work.
Does anyone knwo where the problem could be?
Oracle said that remote_os_authent is depricated because as it is risky, i know that, but my database is in a secure environment without any connection to the internet. What other way would there be without using remote_os_authent?
Thank you very much for your help.
Regards BernhardThanks for the link, i found that i used a case sensitive user name as i created the user with "OPS$USERNAME" and this was why i cound not connect with that user.
-
ORA-01017 (invalid username/password) using globally authenticated account
Kris and team,
Having a hard time believing no one else has encountered this already. But searching on 1017 and "globally" and "identified" in the forum yields nothing useful.
New corporate policy has all our DBAs, developers and QA logging into globally authenticated (against OID) accounts. Oracle docs call these accounts "global users". They are able to do so just fine using SQL*Plus, TOAD and PL/SQL Developer. But when we attempt the same in SQL Developer, different rules seem to be applied, and the user is told their username/password is invalid, which is not correct.
We have several hundred developers ready to use their new accounts in SQL Developer, but cannot. Would appreciate quick reply or patch on this.
btw, when I say "global user", I'm referring to accounts that are created in Oracle using the "identified globally as" syntax.
Am I missing something?
Edited by: chromedome on Aug 9, 2010 1:49 PMThank you, this was helpful in that it caused me to try the other connection methods: Basic, TNS (as you mentioned on your blog), LDAP and Advanced, both with regular accounts and with global users, both with thin and thick drivers employed.
In all cases, using a normal Oracle account, I was able to connect.
But using a global user, with the thick/OCI client forced, I get the "Status: Failure -Test failed: oracle.jdbc.driver.T2Connection.t2cCreateState([BI[BI[BI[BI[BISI[S[B[BZ)I" message. And with the thin driver used, I get the "ORA-01017: invalid username/password; logon denied" message. The possibility I have the password incorrect is non-existent as I'm both typing it in manually, and copying and pasting it, from successful global user connections in PL/SQL Developer and TOAD into SQL Developer.
SQL Developer 2.1.1.64 is not working using InstantClient 11.2 when attempting to login with a global user.
Sue/Kris, due I use "the site formerly known as Metalink" to log a bug, or are you already tackling this internally? We really need this patched soon. -
"ORA-01017 invalid username/password: logon" --- Help Please !!!
Hello Peter,
Sorry for sending an unexpected mail.
I am stuck and really want your help. I have seen your email address on OTM website.
Aim: To run the JAVA code samples provided in Oracle 9i DATA MINING suite
on windows 2000.
I have installed Oracle 9i enterprise edition and
also Oracle 9i Data mining (ODM).
I have lot of problems in username/password authentication.
everytime I run the ODM setup, irrespective of the default
name/password
which is ODM/odmpw it says "ORA-01017 invalid username/password: logon"
I was just working on the Oracle 9i DataMining installation and found something really interesting
I was wondering if you can solve this:
1. I created user SCOTT and ODM using SQL Plus queries by logging system/manager.
and when I typed "select username from dba_names" it gave me ODM and SCOTT as
users and hence I was happy.
2. Then I uninstalled DATA MINING suite and reinstall it thinking this time it should
get ODM/odmpw as username and password as and DBA user/password being
system/manager. When uninstalling DATA MINING suite ODM user gets dropped
and when reinstalling ODM suite, it never make ODM user back in Oracle 9i database.
Hence it is not finding ODM user anymore and hence "ORA-01017 invalid username/password: logon"
error occurs.
Now can you tell me what can be done in order to make the ODM recreate when installing
DATA MINING suite.
Please reply me as I am badly stuck.
I at least know why problem is occurring now looking for solution.
Thanks
NishantI was reading on gogole
i have set
alter system set SEC_CASE_SENSITIVE_LOGON=false scope=spfile;
now i can connect from sqlplus
sqlplus SYSTEM/password
also
sqlplus SYSTEM/password@localhost:1521/XE
also :
From GUI i can connect to oracle db from http by port 8080
but its seems like oracle VM manager does not connect ...
example
Would you like to install Oracle Database 11g Express Edition (XE) or connect to an existing Oracle database?
1: Install Oracle Database 11g XE
2: Use an existing Oracle database
Select Number (1-2): 2
Enter the Oracle Database hostname [localhost]:
Enter the Oracle Database System ID (SID) [XE]:
Enter the Oracle Database SYSTEM password:
Enter the Oracle Database listener port [1521]:
Enter the Oracle VM Manager database schema [ovs]:
Enter the Oracle VM Manager database schema password:
Enter the Oracle VM Manager database schema password (confirm):
Oracle Weblogic Server 11g
==========================
Enter the Oracle WebLogic Server 11g user [weblogic]:
Enter the Oracle WebLogic Server 11g user password:
Enter the Oracle WebLogic Server 11g user password (confirm):
Oracle VM Manager application
=============================
Enter the username for the Oracle VM Manager administration user [admin]:
Enter the admin user password:
Enter the admin user password (confirm):
Verifying configuration ...
The database could not be reached using the provided connection info.
ORA-01017: invalid username/password; logon denied
Configuration verification failed ...
can any one please help me -
ORA-01017: invalid username/password; logon denied FOR SYS USER
Hello,
I was usually login through the same password for sys user to log on to the database as sysdba, but last time i used " / as sysdba" to connect using local system administrative account which is connected very well and still connecting in the same way. The initializing parameter file set with the following parameter:
remote_login_passwordfile=EXCLUSIVE
Now if i use to connect the database server remotely using sys user, it gives me "ORA-01017: invalid username/password; logon denied" error and if i use the same login credentials on DB server machine using other local user accounts it is giving me "Insufficient Privilige" error. I can only connect now using local administrator account from DB server machine using " / as sysdba" statement.
Kindly guide me the issue.When you use " / as sysdba" locally on server, you are using OS authentication which will bypass the password file and user/pass authentication.
Looks like you have discrepancy between the password you use and real password. You can login " / as sysdba" and change your SYS password to a new one.
When was last time you successfully login using password? What has changed since then? -
Why is ORA-01017 after 'connect /@SID' ?
Dear Guru ,
I am doing the Database Import Step for our SAP4.7 system .
Everything is okay , but when i use below command to login the database , it showed me the error message :
SQL> connect /@T19 ;
ERROR:
ORA-01017: invalid username/password; logon denied
Warning: You are no longer connected to ORACLE
Does someone can help me solve this problem ?
Thanks .
Best Regards,
Carlos ZhangHi,
Mainly this error occurs in SAP system, when there is a problem in Oracle database OPS$ authentication mechanism.
Check if the correct operating system username entries are there in database.
Things to Check:
1. Check that environment variable ORACLE_SID=<DBSID> is set properly.
2. Check if remote_os_authent=true is set in your oracle initialization/spfile.
3. Check if OPS$<SID>adm user is created in the database.
SQL>select username,account_status from dba_users;
USERNAME ACCOUNT_STATUS
OPS$<SID>ADM OPEN
OPS$ORA<SID> OPEN
OPS$SAPSERVICE<SID> OPEN
SYS OPEN
SYSTEM OPEN
SAPSR3 OPEN
OUTLN LOCKED
TSMSYS EXPIRED & LOCKED
DIP EXPIRED & LOCKED
ORACLE_OCM EXPIRED & LOCKED
DBSNMP EXPIRED & LOCKED
11 rows selected.
4. Check that you are using correct username and password.
Below SAP Notes will help you:
[361641 - Creating OPS$ users on UNIX|https://service.sap.com/sap/support/notes/361641]
[50088 - Creating OPS$ users on Windows NT-Oracle|https://service.sap.com/sap/support/notes/50088]
[400241 - Problems with ops$ or sapr3 connect to Oracle|https://service.sap.com/sap/support/notes/400241]
Regards.
Rajesh Narkhede -
ORA-01017 error while using a database link
Hi all,
I have a TNS entry as below
HOME=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=10.66.205.110)(PORT=1521))
(CONNECT_DATA=(SID=HOME))
I have created a database link as
create public database link link92.com using 'HOME'.
This was created successfully and an entry was made in all_db_links table.
However if i try connecting to a table in the remote database...for example
select * from emp@link92;
I am receiving an error ORA-01017(Invalid username passwd).
Would appreciate if somebody could help me out.
Thank youIt is not that the Database Link is "PUBLIC" that makes it use the current username/password.
It is that the Database Link has been created without specifying a " CONNECT TO username IDENTIFIED BY password " that makes the DBLink behave as a "current user database link" using the current username/password to connect to the remote database.
You can have a PUBLIC database link that uses a "CONNECT TO username IDENTIFIED BY password" such that all connections use the same remote username and password.
You can also have "private" (ie not PUBLIC) database link that does not specify a "CONNECT TO username IDENTIFIED BY password" which becomes a "current user [owner] database link". -
Error ORA-01017 happened when dbms_scheduler run a job.
Hi All,
I got a problem when I use dbms_scheduler to run a job. I got Error code 1017 when the job is run by scheduler. Please find my steps below:
Oracle version is : Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
1. Created a job successfully by using the code below:
begin
dbms_scheduler.create_job(
job_name => 'monthly_refresh_elec_splits',
job_type => 'PLSQL_BLOCK',
job_action => 'BEGIN TRADINGANALYSIS.PKG_IM_REPORTING_ERM.REFRESH_ELEC_SPLITS_TEST; commit; END;',
start_date => SYSTIMESTAMP,
repeat_interval => 'freq=monthly;bymonthday=25;byhour=10;byminute=35;bysecond=0;',
end_date => NULL,
enabled => TRUE,
comments => 'monthly_refresh_elec_splits.',
auto_drop => FALSE
end;
2. Got the job run details from talbe user_scheduler_job_run_details after the job is finished:
select * from user_scheduler_job_run_details where job_name = 'MONTHLY_REFRESH_ELEC_SPLITS' order by log_id desc;
LOG_ID LOG_DATE OWNER JOB_NAME JOB_SUBNAME STATUS ERROR# REQ_START_DATE ACTUAL_START_DATE RUN_DURATION INSTANCE_ID SESSION_ID SLAVE_PID CPU_USED DESTINATION ADDITIONAL_INFO
2054804 25/06/2012 10:35:01.086000 AM +10:00 TRADINGANALYSIS MONTHLY_REFRESH_ELEC_SPLITS FAILED 1017 25/06/2012 10:35:00.300000 AM +10:00 25/06/2012 10:35:00.400000 AM +10:00 +00 00:00:01.000000 1 1025,37017 129396 +00 00:00:00.030000 ORA-01017: invalid username/password; logon denied
ORA-02063: preceding line from NETS
ORA-06512: at "TRADINGANALYSIS.PKG_IM_REPORTING_ERM", line 574
ORA-06512: at line 1
3. If I run the job directly the job will be finished successfully.
begin
dbms_scheduler.run_job('monthly_refresh_elec_splits',TRUE);
end;
LOG_ID LOG_DATE OWNER JOB_NAME JOB_SUBNAME STATUS ERROR# REQ_START_DATE ACTUAL_START_DATE RUN_DURATION INSTANCE_ID SESSION_ID SLAVE_PID CPU_USED DESTINATION ADDITIONAL_INFO
2054835 25/06/2012 11:05:38.515000 AM +10:00 TRADINGANALYSIS MONTHLY_REFRESH_ELEC_SPLITS SUCCEEDED 0 25/06/2012 11:04:35.787000 AM +10:00 25/06/2012 11:04:35.787000 AM +10:00 +00 00:01:03.000000 1 1047,700 +00 00:00:00.030000
Additional Info:
PL/SQL Code in procedure
PROCEDURE Refresh_Elec_Splits_Test IS
BEGIN
--Refresh im_fact_nets_genvol from v_im_facts_nets_genvol in NETS
DELETE FROM IM_FACT_NETS_GENVOL;
--the local NETS_GENVOL table has an additional column providing volume splits by generator and month.
--INSERT INTO IM_FACT_NETS_GENVOL values ('test',sysdate,'test',1,2,3,4,5,6,7);
INSERT INTO IM_FACT_NETS_GENVOL
select ngv.*,
ratio_to_report (net_mwh) OVER (PARTITION BY settlementmonth, state)
gen_percent
from [email protected] ngv;
commit;
END;
Does anyone can advice where should I check and how can I solve the problem?
Thanks in advance
Edited by: user13244529 on 24/06/2012 18:33
Edited by: user13244529 on 24/06/2012 18:43I apologize if you already solved this.. but see Metalink ID 790221.1
+*<Moderator Edit - deleted contents of MOS Doc - pl do NOT post such content - it is a violation of your Support agreement>*+ -
Background
We are in the processing of upgrading the Oracle database and the Oracle Warehouse Builder.
The current platform is Oracle 10.2.0.2 on RH 32-bit 2-node RAC at SITE1.
With the upgrade we are moving the platform to new hardware Oracle 11.2.0.3 on SLES 11 64-bit Standalone (ie no RAC) in SITE2.
As a staging point we have created a standby database of the current platform in SIT@.
This is Oracle 10.2.0.2 on SLES 11 64-bit Standalone.
We have taken a clone of this standby environment to do some baseline testing.
Testing
The Environment is a split configuration as follows:
RDBMS Version: 10.2.0.2.0 (64-bit)
OWB Repository: 10.2.0.2.0
Workflow Version: 2.6.4
OWB Repository User: owb_des@oradev02vir:1521:repprod
OWB Runtime User: owb_run@ptpdcodbp03:1521:wareprod
NOTE: The /etc/hosts file has been modified so that all of the old RAC node hostnames point locally to the new hostname PTPDCODBP03
172.24.4.21 oraprod04 oraprod04
172.24.4.21 oraprod05 oraprod05
172.24.4.21 oraprod04vir oraprod04vir
172.24.4.21 oraprod05vir oraprod05vir
172.24.4.21 oraprod04priv oraprod04priv
172.24.4.21 oraprod05priv oraprod05priv
172.24.4.21 PTPDCODBP03 PTPDCODBP03
To Test... we are running a process flow called SAS_PF against the Runtime User:
sqlplus owb_run/<password> @sqlplus_exec_template.sql OWB_RUN LOC_OWF PROCESSFLOW SAS_PF "," ","
This fails with
Session altered.
Role set.
Stage 1: Decoding Parameters
| location_name=LOC_OWF
| task_type=PROCESSFLOW
| task_name=SAS_PF
Stage 2: Opening Task
| l_audit_execution_id=7789824
Stage 3: Overriding Parameters
Stage 4: Executing Task
| l_audit_result=3 (FAILURE)
Stage 5: Closing Task
Stage 6: Processing Result
| exit=3
PL/SQL procedure successfully completed.
Additional information in the owb log is:
*2012/05/09-13:19:36-NZST [1DE256F] oracle.wh.runtime.platform.operator.owf_process.OWAFatalRuntimeException: RPE-02018: Oracle Workflow schema OWF_MGR on host ORAPROD04VIR cannot be accessed using service WAREPROD through port 1521. Please check the location details and try again.*
- ORA-01017: invalid username/password; logon denied
Troubleshooting
Work though
http://docs.oracle.com/cd/B28359_01/owb.111/b31280/diagnose_06.htm
all ok
SQLNet Connectivity
The following connections work successfully and both point to the SAME database:
sqlplus owf_mgr@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=PTPDCODBP03)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=WAREPROD)))'
sqlplus owf_mgr@'(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=ORAPROD04VIR)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=WAREPROD)))'
OWB Repository Password
The repository password was reset successfully
@stop_service
@set_repository_password
@start_service
OWB Security
Followed note: Process Flow Execution Fails With RPE-02018 And ORA-01017 [ID 779557.1]
We have logged into the Control Center as
OWF_MGR@ptpdcodbp03:1521:wareprod
And ticked
Persist location password in metadata
Share location password during run time
We have also reinstalled Workflow Manager and re-run the Oracle Workflow Configuration Assistant successfully (then repopulated it with data from the production install).
WE HAVE NOT REDEPLOYED THE FLOW as the customer is against this.
Data Source Files
Have updated the passwords in the data-sources.xml files under
/u01/app/oracle/product/db/10.2/oc4j/j2ee/OC4J_Workflow_Component_Container/application-deployments/WFALSNRSVCApp
/u01/app/oracle/product/db/10.2/oc4j/j2ee/OC4J_Workflow_Component_Container/application-deployments/WFMLRSVCApp
Invalid Objects
There is one java class under the owb_run schema which won't compile.. and is valid in production:
OWB_RUN@wareprod SQL>alter java class "/ffa042cb_SubkeyResourceBundle" resolve;
Java altered.
OWB_RUN@wareprod SQL>select * from user_errors;
NAME TYPE SEQUENCE LINE POSITION
TEXT
ATTRIBUTE MESSAGE_NUMBER
/ffa042cb_SubkeyResourceBundle JAVA CLASS 1 0 0
ORA-29552: verification warning: java.lang.VerifyError: (class: oracle/bali/rts/
SubkeyResourceBundle, method: getRTSBundle signature: (Ljava/lang/String;Ljava/util/Locale;)Loracle/bali/rts/SubkeyResourceBundle;) Wrong return type in function
ERROR 0
But can't find any support documentation on it.
Have also checked and tested all DB LINKS.
Any help is appreciated please.Duplicate thread
ORA-06512: at "OWF_MGR.WF_LOAD
Srini -
New user created in oracle 11g (release 2) is not connecting (ORA-01017)
Hi All,
Kindly help me out regarding this.
I have created a new user using "ORACLE Enterprise Manager 11g" and used the same credentials in SQL developer for a new connection and it throw "ORA-01017: invalid username/password; logon denied" message.
Kindly note that have followed the following steps in creating user:
On the Users page, click Create.
In the Name field, enter NICK.
In the Profile list, accept the value DEFAULT.
This setting assigns the default password policy to user Nick.
In the Enter Password and Confirm Password fields, enter a password that is secure.
Create a password that is secure. See Oracle Database Security Guide for more information.
Do not select Expire password now. If the account status is set to expired, then the user or the database administrator must change the password before the user can log in to the database.
(Optional) Next to the Default Tablespace field, click the flashlight icon, select the USERS tablespace, and then click Select.
All schema objects that Nick creates will then be created in the USERS tablespace unless he specifies otherwise. If you leave the Default Tablespace field blank, Nick is assigned the default tablespace for the database, which is USERS in a newly installed database. For more information about the USERS tablespace, see "About Tablespaces".
(Optional) Next to the Temporary Tablespace field, click the flashlight icon, select the TEMP tablespace, and then click Select.
For the Status option, accept the default selection of Unlocked.
You can later lock the user account to prevent users from logging in with it. To temporarily deny access to a user account, locking the user account is preferable to deleting it, because deleting it also deletes all schema objects owned by the user.
Grant roles, system privileges, and object privileges to the user, as described in "Example: Granting Privileges and Roles to a User Account".
Note: Do not click OK in Step 13 of "Example: Granting Privileges and Roles to a User Account". Instead, skip that step and continue with Step 12 in this procedure.
Assign a 10 MB quota on the USERS tablespace, as described in "Example: Assigning a Tablespace Quota to a User Account".
If you did not click OK while assigning the tablespace quota (previous step), click OK now to create the user.Kindly note that I have log in as SYSTEM user and created this new user.
Could any one help me regarding this ?After connecting with sqlplus, as user SYSTEM and when tried the below, I could see that the new user created by me does not exist..
select '--' || username || '--'
from dba_users
order by username;
But when tried with GUI "ORACLE Enterprise Manager 11g" I can very well see the new user created by me..
How is this possible mate??
Is the user not properly created through GUI (than from where it is showing the new user)
Some more information i want to share;
i have used schema "HR"
And have used table space "USERS"
And tep tablespace "TEMP"
Edited by: 828569 on Jan 16, 2011 9:01 PM
Edited by: 828569 on Jan 16, 2011 9:03 PM -
ORA-01017 invalid username and password on remote connection.
1. Server: Windows 2003 service Pack 2 64 bit
2. Oracle 10.2.0.4
I created a new database and setup everything. Database is up running. At second day, I tried to connect this database from a remote client laptop. A normal user connection is working (I changed sqlnet.ora file to SQLNET.AUTHENTICATION_SERVICES = (NONE)). but I couldn't connect as SYS or SYSTEM users through SQLPLUS or Third party SQL tool. It gave me ORA-01017 error. My steps like:
C:> set Oracle_sid=mydb
C:>sqlplus /nolog
SQL:>conn sys/syspassword as sysdba
ORA-01017
However, I remotely log on to server machine, do the same steps
C:> set Oracle_sid=mydb
C:>sqlplus /nolog
SQL:>conn sys/syspassword as sysdba
SQL:> connected
What caused this error from remote client connection. I have done some search to resolve the problem. Some suggest to re-create password file or create OPS$user. I just setup SYS password during database creation. So I don't want to re-create password file. I have another client machine in office that can connect as SYS and SYSTEM users either from server or from SQLPLUS on client machine without problem. So the issue is on my laptop that is connected to database remotely. Please give me some advices. Thanks.Thanks for all of your advices. I want to say:
1. I just created this new database yesterday and created SYS password during database creation from another clinet machine in my office. All connections are working. This is why I don't want to change the password at this moment. If I re-create password file, will this affect another client machine in office to connect to DB as sysdba?
2. From server, I can connect. I used the same sys/syspassword as sysdba. If the password is wrong, I would not be able to connect from server.
3. When I tried to connect from remote client machine, I do connect with string like: SQL:> conn sys/syspassword@mydb as sysdba. But it didn't work and return ORA-01017 error.
4. I have other 4 databases on different servers. I can connect from the same remote client machine through SQLPLUS and TOAD with sys as sysdba and system.
Please advise more. Thanks. -
ORA-01017: invalid username/password; logon denied
Hello colleagues,
in TCode SM21 we've got a lot of following errors, that were repeated very often:
10:25:09 BTC 010 BY 2 Database error 1017 at CON
10:25:09 BTC 010 BY 0 > ORA-01017: invalid username/password; logon denied
10:25:09 BTC 010 BY 2 Database error 1017 at CON
10:25:09 BTC 010 BY 0 > ORA-01017: invalid username/password; logon denied
10:25:09 BTC 010 R1 9 Initialization DB-Connect Failed, Return Code 000256
10:25:09 BTC 010 Q0 2 Stop Workproc10, PID 3549
Background processes only affected and seems to be restarted after every attempt for connection into database.
After restart fo system (DB + ABAP) problem still persists, but does not occur that often. In productive system approximately once in every 2 hours, but is still there.
System environment:
DB: Oracle Release 10.2.0.2.0
OS: HP-UX
SAP: SAP ECC 6.0
Listener is up and running:
oraqxs 499 1 0 10:15:31 ? 0:01 /oracle/QXS/102_64/bin/tnslsnr LISTENER_QXS -inherit
R3trans working as well:
mucsx032:qxsadm 29> R3trans -d -v
This is R3trans version 6.14 (release 700 - 10.09.07 - 09:57:00).
R3trans finished (0000).
Below is extract from WP tracefile.
trc file: "dev_w10", trc level: 1, release: "700"
ACTIVE TRACE LEVEL 1
ACTIVE TRACE COMPONENTS all, MJ
M sysno 02
M sid QXS
M systemid 274 (HP (IA-64) with HP-UX)
M relno 7000
M patchlevel 0
M patchno 133
M intno 20050900
M make: single threaded, ASCII, 64 bit, optimized
M pid 3549
M
M
M Wed May 6 10:25:09 2009
M kernel runs with dp version 232(ext=109) (@(#) DPLIB-INT-VERSION-232)
M length of sys_adm_ext is 364 bytes
M ThInit: running on host ciqxs02
M calling db_connect ...
C Oracle Client Version: '10.2.0.1.0'
C Client NLS settings: AMERICAN_AMERICA.WE8DEC
C Logon as OPS$-user to get SAPDAT's password
C Connecting as /@QXS on connection 0 (nls_hdl 0) ... (dbsl 700 250407)
C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
C 0 WE8DEC 1 600000000299f0a0 60000000029a6a20 60000000029aa408
C Attaching to DB Server QXS (con_hdl=0,svchp=60000000029aa338,srvhp=60000000029ac688)
C Starting user session (con_hdl=0,svchp=60000000029aa338,srvhp=60000000029ac688,usrhp=60000000029a7238)
C *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1017
[dboci.c 4532]
C *** ERROR => CONNECT failed with sql error '1017'
[dbsloci.c 11044]
C Try to connect with default password
C Connecting as SAPDAT/<pwd>@QXS on connection 0 (nls_hdl 0) ... (dbsl 700 250407)
C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
C 0 WE8DEC 1 600000000299f0a0 60000000029a6a20 60000000029aa408
C Starting user session (con_hdl=0,svchp=60000000029aa338,srvhp=60000000029ac688,usrhp=60000000029a7238)
C *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1017
[dboci.c 4532]
C *** ERROR => CONNECT failed with sql error '1017'
[dbsloci.c 11044]
B ***LOG BY2=> sql error 1017 performing CON [dbsh#2 @ 1204] [dbsh 1204 ]
B ***LOG BY0=> ORA-01017: invalid username/password; logon denied [dbsh#2 @ 1204] [dbsh 1204 ]
B ***LOG BY2=> sql error 1017 performing CON [dblink#5 @ 431] [dblink 0431 ]
B ***LOG BY0=> ORA-01017: invalid username/password; logon denied [dblink#5 @ 431] [dblink 0431 ]
M ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) [thxxhead.c 1435]
M in_ThErrHandle: 1
M *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 10377]
M
M Info for wp 10
M
M stat = WP_RUN
M waiting_for = NO_WAITING
M reqtype = DP_RQ_BTCWP
M act_reqtype = DP_RQ_BTCWP
M rq_info = 8576
M tid = -1
M mode = 255
M len = 24
M rq_id = 1055
M rq_source = FROM_WP_CA
M last_tid = 10
M last_mode = 0
M semaphore = 0
M act_cs_count = 0
M csTrack = 0
M csTrackRwExcl = 0
M csTrackRwShrd = 0
M mode_cleaned_counter = 0
M control_flag = 0
M int_checked_resource(RFC) = 0
M ext_checked_resource(RFC) = 0
M int_checked_resource(HTTP) = 0
M ext_checked_resource(HTTP) = 0
M report = > <
M action = 0
M tab_name = > <
M req.vm = no VM
M attachedVm = no VM
M PfStatDisconnect: disconnect statistics
M Entering TH_CALLHOOKS
M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c 724]
M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c 259]
M Entering ThSetStatError
M ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
M Entering ThReadDetachMode
M call ThrShutDown (1)...
M ***LOG Q02=> wp_halt, WPStop (Workproc10 3549) [dpuxtool.c 259]
Do you have an idea how to get rid of this error? Did you experienced the same problem before? We will be thankful for any ideas.
Thank you all in advance.Hi,
You did not mention abt the kerneleveland DB/SAP version details.
Chk the note 623242.
Regards....... -
ERROR: ORA-01017: invalid username/password; logon denied
Hi all
I need your kind help.
I have installed Oracle Audit Vault Server Release 10.2.3.2 in Linux system and collection agent in Windows system. Adding and starting DBAUD collector went fine however adding REDO collector return back errors when executing avorcldb add_collector command as follow
[oracle@avsrv ~]$
[oracle@avsrv ~]$ avorcldb add_collector -srcname orcl -agentname avagent01 -colltype REDO -av Lugaopc:1521:orcl
collector REDO_Collector for source orcl already exists
initializing REDO Collector
ERROR: could not get AV source user connection using jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Lugaopc)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)))
ERROR: ORA-01017: invalid username/password; logon denied
[oracle@avsrv ~]$
Here is the contents of avorcldb.log file
09-09-13 16:58:44 [INFO ] Processing command add_collector
09-09-13 16:58:44 [INFO ] Processing arg -srcname = orcl
09-09-13 16:58:44 [INFO ] Processing arg -agentname = avagent01
09-09-13 16:58:44 [INFO ] Processing arg -colltype = REDO
09-09-13 16:58:44 [INFO ] Processing arg -av = Lugaopc:1521:orcl
09-09-13 16:58:44 [INFO ] Connect info : Lugaopc:1521:orcl
09-09-13 16:58:45 [INFO ] Got AV admin connection using jdbc:oracle:oci:@AVDB
09-09-13 16:58:45 [INFO ] Executing SQL as [ADM@AV] select s.host||':'||a1.num_value||':'||a2.char_value from avsys.av$attrvalue a1, avsys.av$attrvalue a2, avsys.av$source s, avsys.av$attrdef ad1, avsys.av$attrdef ad2 where source_name = :1 and a1.inst_id = s.source_id and a2.inst_id = s.source_id and a1.attr_id = ad1.attr_id and ad1.attr_name = 'PORT' and a2.attr_id = ad2.attr_id and ad2.attr_name = 'DB_SERVICE'
09-09-13 16:58:45 [INFO ] Using bind value orcl
09-09-13 16:58:45 [INFO ] Return value = Lugaopc:1521:orcl
09-09-13 16:58:45 [INFO ] Connect info : Lugaopc:1521:orcl
09-09-13 16:58:45 [INFO ] Executing SQL as [ADM@AV] select to_char(source_id) from avsys.av$source where source_name = :1
09-09-13 16:58:45 [INFO ] Using bind value orcl
09-09-13 16:58:45 [INFO ] Return value = 1
09-09-13 16:58:46 [INFO ] Got source user connection using jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Lugaopc)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)))
09-09-13 16:58:46 [INFO ] Executing SQL as [ADM@AV] select decode(c.status, 1, 'active', 0, 'dropped', null) from avsys.av$collector c, avsys.av$source s where source_name = :1 and collector_name = :2 and c.source_id = s.source_id
09-09-13 16:58:46 [INFO ] Using bind value orcl
09-09-13 16:58:46 [INFO ] Using bind value REDO_Collector
09-09-13 16:58:46 [INFO ] Return value = active
09-09-13 16:58:46 [MESG ] collector REDO_Collector for source orcl already exists
09-09-13 16:58:46 [INFO ] Executing SQL as [ADM@AV] select decode(c.status, 1, 'active', 0, 'dropped', null) from avsys.av$collector c, avsys.av$source s where source_name = :1 and collector_name = :2 and c.source_id = s.source_id
09-09-13 16:58:46 [INFO ] Using bind value orcl
09-09-13 16:58:46 [INFO ] Using bind value REDO_Collector
09-09-13 16:58:46 [INFO ] Return value = active
09-09-13 16:58:46 [MESG ] initializing REDO Collector
09-09-13 16:58:46 [INFO ] Executing SQL as [ADM@AV] select username from avsys.av$source where source_name = :1
09-09-13 16:58:46 [INFO ] Using bind value orcl
09-09-13 16:58:46 [INFO ] Return value = AVSRCUSR1
09-09-13 16:58:46 [INFO ] Executing SQL as [ADM@AV] {? = call avsys.dbms_audit_vault.reset_source_user(?)}
09-09-13 16:58:46 [INFO ] Adding mask for user password
09-09-13 16:58:46 [INFO ] Executing SQL as [USR@SRC] select table_name from user_tables where upper(table_name) = upper(:1)
09-09-13 16:58:46 [INFO ] Using bind value STREAMS_HEARTBEAT
09-09-13 16:58:46 [INFO ] Return value = STREAMS_HEARTBEAT
09-09-13 16:58:46 [INFO ] Executing SQL as [USR@SRC] drop table streams_heartbeat
09-09-13 16:58:46 [INFO ] Executing SQL as [USR@SRC] create table streams_heartbeat( src_dbname varchar2(4000), job_number number, heartbeat_time timestamp)
09-09-13 16:58:46 [INFO ] Executing SQL as [USR@SRC] declare dbs_name varchar2(4000); begin select global_name into dbs_name from global_name; insert into streams_heartbeat values (dbs_name, 0, SYSTIMESTAMP); end;
09-09-13 16:58:46 [INFO ] Executing SQL as [USR@SRC] create or replace procedure update_heartbeat IS begin update streams_heartbeat set heartbeat_time=(select systimestamp from dual); commit; end;
09-09-13 16:58:46 [INFO ] Executing SQL as [USR@SRC] select table_name from user_tables where upper(table_name) = upper(:1)
09-09-13 16:58:46 [INFO ] Using bind value CAPTURE_RULES
09-09-13 16:58:46 [INFO ] Return value = CAPTURE_RULES
09-09-13 16:58:46 [INFO ] Executing SQL as [USR@SRC] drop table capture_rules
09-09-13 16:58:46 [INFO ] Executing SQL as [USR@SRC] create table capture_rules( rule_name varchar2(50), rule_scope varchar2(6), rule_type varchar2(3), obj_name varchar2(100))
09-09-13 16:58:46 [INFO ] Executing SQL as [ADM@AV] select global_name from global_name
09-09-13 16:58:46 [INFO ] Return value = AVDB.AVSRV
09-09-13 16:58:46 [INFO ] Executing SQL as [USR@SRC] select db_link from user_db_links where db_link = :1
09-09-13 16:58:46 [INFO ] Using bind value AVDB.AVSRV
09-09-13 16:58:46 [INFO ] Return value = AVDB.AVSRV
09-09-13 16:58:46 [INFO ] Executing SQL as [USR@SRC] drop database link "AVDB.AVSRV"
09-09-13 16:58:46 [INFO ] Executing SQL as [USR@SRC] select version from v$instance
09-09-13 16:58:46 [INFO ] Return value = 11.2.0.1.0
09-09-13 16:58:46 [INFO ] Creating DB link using AVDB.AVSRV,AVSRCUSR1,{avsrcusr_pwd},Lugaopc,1521,orcl
09-09-13 16:58:46 [INFO ] Connecting as srcuser_ora01 to @(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Lugaopc)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)))
09-09-13 16:58:46 [INFO ] Output from SQLPlus
09-09-13 16:58:46 [INFO ]
09-09-13 16:58:46 [INFO ] Package created.
09-09-13 16:58:46 [INFO ]
09-09-13 16:58:46 [INFO ] No errors.
09-09-13 16:58:47 [INFO ]
09-09-13 16:58:47 [INFO ] Package body created.
09-09-13 16:58:47 [INFO ]
09-09-13 16:58:47 [INFO ] No errors.
09-09-13 16:58:47 [INFO ]
09-09-13 16:58:47 [INFO ] Package created.
09-09-13 16:58:47 [INFO ]
09-09-13 16:58:47 [INFO ] No errors.
09-09-13 16:58:47 [INFO ]
09-09-13 16:58:47 [INFO ] Package body created.
09-09-13 16:58:47 [INFO ]
09-09-13 16:58:47 [INFO ] No errors.
09-09-13 16:58:47 [INFO ] Executing SQL as [USR@SRC] select distinct name from user_errors where name = :1
09-09-13 16:58:47 [INFO ] Using bind value DBMS_SRC_STREAMS_COLLECTOR
09-09-13 16:58:47 [INFO ] Return value = null
09-09-13 16:58:47 [ERROR] could not get AV source user connection using jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Lugaopc)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)))
09-09-13 16:58:47 [ERROR] ORA-01017: invalid username/password; logon denied
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:765)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:414)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:162)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at oracle.av.avca.jdbc.JdbcConnection.<init>(JdbcConnection.java:87)
at oracle.av.orcldb.DAO.initConnection(DAO.java:79)
at oracle.av.orcldb.DAO.<init>(DAO.java:64)
at oracle.av.orcldb.commands.AddCollector.setupCollector(AddCollector.java:746)
at oracle.av.orcldb.commands.AddCollector.execute(AddCollector.java:230)
at oracle.av.orcldb.Command.process(Command.java:89)
at oracle.av.orcldb.Main.process(Main.java:118)
at oracle.av.orcldb.Main.main(Main.java:132)
I have searched the forum to my level best without clear solution
Regards
SadockHi gurus
I don't believe if this is missing solution from oracle community. I have decided to installed the collction agent and source database in linux system, so now both auditt vault server and collction agent are running in Linux system (but separately)
I am wondering, avorcldb add_collector -srcname ORCL -agentname avagent01 -colltype DBAUD and avorcldb add_collector -srcname ORCL -agentname avagent01 -colltype OSAUD -orclhome /u01/app/oracle/product/11.2.0/dbhome_1 are working fine and I am able to start these collectors
The avorcldb verify -src Lugaosrv:1521:ORCL.LUGAOSRV -colltype ALL command also return good results
[oracle@avsrv ~]$ avorcldb verify -src Lugaosrv:1521:ORCL.LUGAOSRV -colltype ALL
Enter Source user name: srcuser_ora01
Enter Source password:
source ORCL.LUGAOSRV verified for OS File Audit Collector collector
source ORCL.LUGAOSRV verified for Aud$/FGA_LOG$ Audit Collector collector
source ORCL.LUGAOSRV verified for REDO Log Audit Collector collector
[oracle@avsrv ~]$
The problem still I am facing is when attempting to add REDO collector. In fact the collector is added successful and i can see it even on EM console.
[oracle@avsrv ~]$ avorcldb add_collector -srcname ORCL -agentname avagent01 -colltype REDO -av Lugaosrv:1521:ORCL.LUGAOSRV
source ORCL verified for REDO Log Audit Collector collector
Adding collector...
Collector added successfully.
remember the following information for use in avctl
Collector name (collname): REDO_Collector
initializing REDO Collector
ERROR: could not get AV source user connection using jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Lugaosrv)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL.LUGAOSRV)))
ERROR: ORA-01017: invalid username/password; logon denied
[oracle@avsrv ~]$
Any help will be appreciated
Sadock -
Database link error - ORA-01017
Hello all. I have a problem with a database link. I create the link like this -
create database link agenda
connect to user1 identified by user1pw
using 'agenda'
... I have read where you need to make the link name the same as the Net8 name. I create the link, no problem.
Then when I try to use it -
select * from myTable@agenda
... I get a ORA-01017: invalid username/password error.
This is impossible! I use the agenda service in Toad no problem, and log in with the same user/password.
Anyone have any idea what's going on here? I have tried re-doing links for every database I have, all with Net8 services that are working, and with correct,usernames/passwords, and they all give me the same answer! Help
-bob
nullTry with agenda.us.oracle.com
-
ORA-01017: invalid username/password; logon denied - Database Link
Hi Guys,
Could you help me, I have a problem connecting to another database using the database link:
*1. I added in tnsnanes.ora of "client" database DEV2*
DEV =
+(DESCRIPTION =+
+(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.85)(PORT = 1521))+
+(CONNECT_DATA =+
+(SID = DEVDB)+
+)+
+)+
*2. I tested my connection using tnsping*
oracle@dev> tnsping dev
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 10-JUL-2010 14:35:35
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
+/opt/oracle/product/10.2/db_1/network/admin/sqlnet.ora+
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.100.85)(PORT = 1521)) (CONNECT_DATA = (SID = DEVDB)))
OK (0 msec)
oracle@dev>
*3. In SQLPLUS of DEV2 I connect to my database using the tnsnames entry*
SQL> conn devuser/pwd001@dev
Connected.
*4. I then create a database link.*
SQL> Create Database Link dev_Link
+2 Connect to devuser+
+3 identified by pwd001+
+4 using 'DEV';+
Database link created.
SQL>
*5. When I try to connect to the database using the database link I get an error, but I am very sure the username ans password are ok.*
SQL> select * from global_name@dev_link;
select * from global_name@dev_link
*+
ERROR at line 1:
ORA-01017: invalid username/password; logon denied
ORA-02063: preceding line from DEV_LINK
SQL>
What could be wrong......??4. I then create a database link.
SQL> Create Database Link dev_Link
2 Connect to devuser
3 identified by pwd001
4 using 'DEV';create DATABASE LINK USING <connect-string>
your sid is DEVDB so create dblink using oracle_sid
If you specify only the database name, then Oracle Database implicitly appends the database domain to the connect string to create a complete service name. Therefore, if the database domain of the remote database is different from that of the current database, then you must specify the complete service name.
Edited by: rajeysh on Jul 10, 2010 7:28 PM
Maybe you are looking for
-
I got a flashing folder with a question mark. I got a new hard drive and upgraded to 4 gigs and can't open anything or reload the operating system? Help? FYI: I have been using boot camp with windows 7 and started getting a kernal_data_Page_error and
-
Which class type of 4GB T-Flash (microSDHC) does 5...
Hi all, Seems that there is no mention in the manual regarding to the captioned. I wonder if class 4 or class 6 - 4GB T-Flash (microSDHC)will 5610XM support? Please give a hand~~ many thanks! Quoted from - http://www.sandisk.com/Assets/File/pdf/retai
-
Scrolling bug in mountain lion? - please help
Really annoying bug that seems to have developed in the last few days - can anyone help? when looking at any window with a scroll bar the screen starts to automatically scroll in jerky steps every quarter of a second or so downwards (or upwards if I
-
Importing contacts from memory card
Have recently got new 5800 after mine got wet. The new one is slightly different and I have put my memory card from old one into new phone. I can't seem to find the right route to import my numbers off my memory card. I'm sure the card is not corrupt
-
Hello All, I need to know the new created tables on my database and the added columns: I used the below query so i can get the NEW created tables select * from dba_objects d where to_date(d.created,'dd/mm/yyyy') = to_Date(sysdate-1,'dd/mm/yyyy') and