Version / Date | 0 / 2009-10-08 |
Priority | Recommendations/additional info |
Category | Help for error analysis |
Primary Component | BC-DB-ORA Oracle |
Secondary Components | BC-DB-ORA-DBA Database Administration with Oracle |
Summary |
---|
Symptom ORA-01004: default username feature not supported; logon denied ORA-01017: invalid username/password; logon denied ORA-01031: insufficient privileges ORA-01403: no data found ORA-00942: table or view does not exist ORA-00980: synonym translation is no longer valid BR301W SQL error -1017 at location BrDbConnect-1 BR310W Connect to database instance <sid> failed Reason and Prerequisites R/3 work processes and R/3 tools such as R3trans often require the option to use the user sapr3 to connect to the database. This can be achieved in one of the following ways:
OS user: c11adm OS_AUTHENT_PREFIX: ops$ DB user: ops$c11adm However, in the following three situations, using OPS$ to connect would fail: OS user: c11adm orac11 c11adm os_authent_prefix: ops ops$ ops$ DB user: ops$c11adm ops$c11adm ops$prdadm You can also create more than one OPS$ user in the database. On NT with Oracle 8.1.5 or higher, ensure that the OPS$ user also contains the domain name (or the local host, if the database server does not belong to any domain): OPS$<domain>\<os_user> You can use the WINDOWS environment variable USERDOMAIN to determine the required domain name or host name. If the system connected successfully in accordance with 1a) and 1b), the corresponding log file (for example dev_wX or trans.log) contains the following entries: Logon as OPS$-user to get SAPR3's password Connecting as /@<sid> on connection 0 ... <-- 1a) Now I'm connected to ORACLE Got SAPR3's password from table SAPUSER Disconnecting from connection 0 ... Now I'm disconnected from ORACLE Try to connect with the password I got from OPS$-user Connecting as SAPR3/<pwd>@<sid> on connection 0 ... <-- 1b) Now I'm connected to ORACLE If connecting using 1a) and 1b) is not possible, but alternative 2 works, the log will look as follows: Logon as OPS$-user to get SAPR3's password <-- 1a) Connecting as /@<sid> on connection 0 ... *** ERROR => OCI-call 'olog' failed: rc = 1017 <-- Error! *** ERROR => CONNECT failed with sql error '1017' Try to connect with default password Connecting as SAPR3/<pwd>@<sid> on connection 0 ... <-- 2; C Now I'm connected to ORACLE Ensure that the penultimate line looks exactly as in the first example, even though the sapr3 password from the table SAPUSER was used in the first case and the standard password "sap" was used in the second case. The preceding line, which specifies which of the passwords is used to connect, is important here. If one of the two connection methods fails, this is generally not a problem, as long as the other method works. That is, to ensure that the system connects successfully, either the standard password for sapr3 must be set, or the mechanism using the OPS$ user must be set up correctly. Note that the log messages may vary slightly in different R/3 releases. In addition, the reverse sequence was valid with earlier R/3 releases: first the system used the standard password to connect and the OPS$ mechanism was used only if that failed. Note 50088 (NT) and Note 361641 (UNIX) describe ways of setting up the OPS$ mechanism. However, problems often occur that cannot be corrected without background knowledge of the available tools. For this reason, a description of common errors and solutions is provided below. BR*TOOLS such as BRBACKUP, BRCONNECT, and BRRECOVER also use the OPS$ user to access the database if you also specify the option "-u /". This is always the case from R/3 (for example from transaction DB13). However, unlike the R/3 work processes, the system uses the OPS$ user directly rather than using it only to determine the sapr3 password. For this reason, the system executes only step 1a) for these tools (logon as OPS$user). After the OPS$ user is created correctly, you must import the current version of the SAPDBA role as described in Note 134592 to ensure that the BR*TOOLS function correctly. If the OPS$ user has been set up correctly for the BR*TOOLS, the corresponding operating system user is able to log on using "sqlplus /". In addition, the role SAPDBA must be assigned to the OPS$ user. You can use the following command to check this: CONNECT / AS SYSDBA; SELECT GRANTED_ROLE FROM DBA_ROLE_PRIVS WHERE GRANTEE = '<ops$_user>'; The result must contain a line with SAPDBA. As of R/3 6.10, you CAN also use an alternative user setup and an alternative tablespace setup. The most important change in this regard is the use of the SID-dependent SAP<sid> instead of the user SAPR3. You can use the following query to determine the user to which the R/3 objects actually belong: SELECT OWNER FROM DBA_TABLES WHERE TABLE_NAME = 'T000'; The reason for this change is to provide the option to keep several R/3 systems with different SIDs in one database where each system requires its own user. If the new layout is used, SAPR3 is no longer used even for the connect, but SAP<sid> is used. To ensure that R3trans / saplicense and the work processes also recognize this, you must set the following environment variable: dbs_ora_schema = SAP<sid> In particular, you must ensure that "SAP<sid>" is written only in uppercase. With 6.10, the log entries described above have also slightly changed. However, the basic mechanism remains and you can easily map the new entries in trans.log or in the dev traces to the logs described in this note. The user is also affected by the variable auth_shadow_upgrade = 1 which, in an upgrade with access to the shadow instance, switches the normal user "sapr3" to "sapr3shd". This variable must NEVER (not even during an upgrade) be set in the environment or in the registry. Solution Execute all of the specified SQL statements as ora<sid> (UNIX) or <sid>adm (NT) with SQLPLUS and "CONNECT / AS SYSDBA". On NT with Oracle 8.1.5 or higher, add the domain (for example, OPS$<domain>\<sid>ADM instead of OPS$<sid>ADM) at all points in which the OPS$ user occurs in the following SQL commands. If the user is a non-domain user, the name of the local host replaces the domain name. Below, <sapowner> indicates the owner of the R/3 tables, that is, SAPR3 or SAP<sid> (depending on the setup). General checks
The OPS$ mechanism is not activated in Oracle. To provide the general OPS$ connection option, proceed as follows:
ORA-01017: invalid username/password; logon denied Message ORA-01017 may occur in step 1a), 1b), or 2). Depending on this, the problem can be solved as follows: 1a) Log entries: Logon as OPS$ user to get <sapowner>'s password Connecting as /@<sid> on connection 0 ... *** ERROR => OCI-call 'olog' failed: rc = 1017 *** ERROR => CONNECT failed with sql error '1017' If you intend to use the standard password for <sapowner> anyway, you can ignore the error message at this point, because the OPS$ mechanism is not required at all and the system connects successfully using <sapowner>/sap. However, note that that BR*TOOLS do require a working OPS$ mechanism when using DB13 to execute. Otherwise, you must ensure that an appropriate OPS$ user is set up. To do this, proceed as follows:
Connecting as /@<sid> on connection 0 ... Now I'm connected to ORACLE Got <sapowner>'s password from table SAPUSER Disconnecting from connection 0 ... Now I'm disconnected from ORACLE Try to connect with the password I got from OPS$-user Connecting as <sapowner>/<pwd>@<sid> on connection 0 *** ERROR => OCI-call 'olog' failed: rc = 1017 *** ERROR => CONNECT failed with sql error '1017' If the system issues ORA-01017 at this point, the < sapowner> password in the table SAPUSER is incorrect. In this situation, proceed as follows:
Connecting as <sapowner>/<pwd>@<sid> on connection 0 *** ERROR => OCI-call 'olog' failed: rc = 1017 *** ERROR => CONNECT failed with sql error '1017'
Log entries: Logon as OPS$ user to get <sapowner>'s password Connecting as /@<sid> on connection 0 ... Now I'm connected to ORACLE *** ERROR => ORA-1031 when accessing table SAPUSER Check whether the grants (especially SELECT) on SAPUSER are set correctly for the OPS$ user as described in the "General checks" section above. ORA-01403: no data found Log entries: Logon as OPS$ user to get <sapowner>'s password Connecting as /@<sid> on connection 0 ... Now I'm connected to ORACLE *** ERROR => ORA-1403 when accessing table SAPUSER The main cause of ORA-01403 is that the table SAPUSER does not contain any entries. Therefore, proceed as follows:
Log entries: Logon as OPS$ user to get <sapowner>'s password Connecting as /@<sid> on connection 0 ... Now I'm connected to ORACLE *** ERROR => ORA-942 when accessing table SAPUSER The system issues message ORA-00942 if the table SAPUSER does not exist. Therefore, proceed as follows:
Log entries: Logon as OPS$ user to get <sapowner>'s password Connecting as /@<sid> on connection 0 ... Now I'm connected to ORACLE *** ERROR => ORA-980 when accessing table SAPUSER The system issues ORA-00980 if a synonym for SAPUSER exists but is no longer valid for some reason (for example, because it refers to an object that does not exist). Therefore, you must create the synonym for SAPUSER again as described in the "General checks" section above. |
Related Notes | |
---|---|
969519 | 6.20/6.40 Patch Collection Installation : Oracle/UNIX |
951167 | ORA-28000: the account is locked |
849141 | SAP NetWeaver 2004s Installation on Windows: Oracle |
700548 | FAQ: Oracle authorizations |
675940 | SAP Web AS 6.40 Installation on Windows: Oracle |
662644 | Composite SAP Note: ORA-00942 |
650796 | Composite Note: ORA-00980 |
569302 | Loading data in BW fails with ORA-01017 |
562863 | FAQ: Logon mechanisms |
437648 | DB13: External program terminated with exit code 1/2 |
2 comments:
Thanks for your blog!!.
JAVA Development Services
HR Pay Roll Software
SAP Software Services
Hotel Billing Software
Web Design Company
Hospital Management Software
Thanks for your blog!!.
JAVA Development Services
HR Pay Roll Software
SAP Software Services
Hotel Billing Software
Hospital Management Software
cheap web design in Chennai
School ERP software in Chennai
Leather ERP in Chennai
Post a Comment