Invalid username/password to call a remote session bean

I am having a problem accessing a remote session bean,
javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Invalid username/password for default (admin); nested exception is:
     javax.naming.AuthenticationException: Invalid username/password for default (admin) [Root exception is javax.naming.AuthenticationException: Invalid username/password for default (admin)]
     at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:168)
     at javax.naming.InitialContext.lookup(InitialContext.java:347)
Ejb is delpoyed into an OC4J instance on an application server,
Tried all username, password, still invalid,
I am using url as the following:
env.put(Context.PROVIDER_URL, "ormi://hostname:12401/");
Does the OC4J instance config affect the url, or url is only related with ip and port?
Any idea? Thanks a lot.

When you install OC4J 10.1.3 and run the command "java -jar %J2EE_HOME%\j2ee\home\oc4j.jar", the system will ask for password for the oc4jadmin user.
I do not recall 10.1.2 version having this feature.
If you were able to create new user in administrator group, make sure that orion-application.xml contains the following entries.
<namespace-access>
          <read-access>
               <namespace-resource root="">
                    <security-role-mapping name="&lt;jndi-user-role&gt;">
                         <group name="Administrator" />
                    </security-role-mapping>
               </namespace-resource>
          </read-access>
          <write-access>
               <namespace-resource root="">
                    <security-role-mapping name="&lt;jndi-user-role&gt;">
                         <group name="Administrator" />
                    </security-role-mapping>
               </namespace-resource>
          </write-access>
     </namespace-access>
This will allow RMI access to remote users.

Similar Messages

  • Invalid username/password connecting to deployed session EJB (to OAS)

    Hello,
    OAS version : 9.0.4.0.0
    JDeveloper version : 10.1.2.0.0 (Build 1811)
    I have generated a very simple session EJB with the EJB
    Diagram : business logic is only a method returning a
    "hello world" String (no DB connection).
    Next i have generated a "New Sample Java Client" to test
    that, first connecting to the Embedded OC4J and it worked
    very well.
    Then i wanted to deploy this small example to my OAS
    server, so i created a new session EJB deployment profile.
    Deployment worked very well too.
    To test this, i generated another "New Sample Java
    Client", but that time i choosed "Connect to Remote App
    Server", with adequate J2EE application and App Server
    Connection names.
    I took note of the new context lines. Login/password
    strings were automatically filled with the ones i use to
    connect to OEM Website (lets say the_login/the_password).
    But unfortunately, when i launch the client, it doesn't
    work. Here is the error stack :
    C:\jdev1012\jdk\bin\javaw.exe -ojvm -classpath C:\dev\jdev\mywork\DarkWork\DarkProject\classes;C:\jdev1012\jdev\lib\jdev-rt.jar;C:\jdev1012\j2ee\home\lib\activation.jar;C:\jdev1012\j2ee\home\lib\ejb.jar;C:\jdev1012\j2ee\home\lib\jaas.jar;C:\jdev1012\j2ee\home\lib\jaxp.jar;C:\jdev1012\j2ee\home\lib\jcert.jar;C:\jdev1012\j2ee\home\lib\jdbc.jar;C:\jdev1012\j2ee\home\lib\jms.jar;C:\jdev1012\j2ee\home\lib\jndi.jar;C:\jdev1012\j2ee\home\lib\jnet.jar;C:\jdev1012\j2ee\home\lib\jsse.jar;C:\jdev1012\j2ee\home\lib\jta.jar;C:\jdev1012\j2ee\home\lib\mail.jar;C:\jdev1012\j2ee\home\lib\servlet.jar;C:\jdev1012\j2ee\home\oc4j.jar;C:\jdev1012\opmn\lib\optic.jar;C:\jdev1012\lib\xmlparserv2.jar;C:\jdev1012\lib\xmlcomp.jar mypackage1.SessionEJBClient
    javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Invalid username/password for DarkEJB (the_login); nested exception is:
         javax.naming.AuthenticationException: Invalid username/password for DarkEJB (the_login) [Root exception is javax.naming.AuthenticationException: Invalid username/password for DarkEJB (the_login)]
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:168)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at mypackage1.SessionEJBClient.main(SessionEJBClient.java:18)
    Caused by: javax.naming.AuthenticationException: Invalid username/password for DarkEJB (the_login)
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2523)
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2339)
         at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1781)
         at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:663)
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:149)
         ... 2 more
    Process exited with exit code 0.
    Do you know what i can do to solve this problem ?
    I saw several posts on this forum about that problem,
    mostly in 2003, so perhaps it has been solved now.
    I tried the solutions and workarounds mentioned in those
    post, but the error is still there...
    Thank you for your help ! :-)

    When you are connecting through a hotels WiFi like this they may occasionally require you to login via a home web page, this is quite normal. In many cases the password for this will be provided at checkin and with this being the case it would be worth speaking with the front desk to see if they can assist you with this.
    What are your thoughts about this forum? Let us know by doing this short survey.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • 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.......

  • Invalid username/password logon

    Hi to all:
    I am installing ECC in AIX with RDBMS Oracle 10.2.0.2 in Productive System in HA mode with HAMP. When balancing the services Cluster I have problems starting SAP.
    I have executed the R3trans –x and this is the log file:
    4 ETW000 R3trans version 6.14 (release 700 - 15.06.07 - 15:50:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 16.03.2008 - 00:43:05
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -x
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Sun Mar 16 00:43:05 2008                              71  0.000071
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    28  0.000099
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                             46  0.000145
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/PRD/SYS/exe/run/dboraslib.o' ...
    4 ETW000                                                                              66  0.000211
    4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/PRD/SYS/exe/run/dboraslib.o), hdl 0
    4 ETW000                                                                           13557  0.013768
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/PRD/SYS/exe/run/dboraslib.o' loaded
    4 ETW000                                                                              44  0.013812
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/PRD/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              52  0.013864
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/PRD/SYS/exe/run/dboraslib.o' is "700.08", patchlevel (0.107)
    4 ETW000                                                                              81  0.013945
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/PRD/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              48  0.013993
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/PRD/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              74  0.014067
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              31  0.014098
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              56  0.014154
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         47  0.014201
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              45  0.014246
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              52  0.014298
    4 ETW000  [dev trc     ,00000]  Got LIBPATH=/usr/lib:/lib:/usr/sap/PRD/SYS/exe/run:/oracle/PRD/102_64/lib from environment
    4 ETW000                                                                             358  0.014656
    4 ETW000  [dev trc     ,00000]  Oracle Client Version: '10.2.0.2.0'                   60  0.014716
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         30  0.014746
    4 ETW000  [dev trc     ,00000]  Client NLS settings: AMERICAN_AMERICA.UTF8          3826  0.018572
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPSR3's password           38  0.018610
    4 ETW000  [dev trc     ,00000]  Connecting as /@PRD on connection 0 (nls_hdl 0) ... (dbsl 700 250407)
    4 ETW000                                                                              48  0.018658
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              52  0.018710
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1 0x110f9a780 0x110fb2bf8 0x110fb24a8
    4 ETW000                                                                              62  0.018772
    4 ETW000  [dev trc     ,00000]  Allocating service context handle for con_hdl=0       38  0.018810
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      31  0.018841
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server PRD (con_hdl=0,svchp=0x110fb5d98,srvhp=0x110fb5fb8)
    4 ETW000                                                                              97  0.018938
    4 ETW000  [dev trc     ,00000]  Assigning server context 0x110fb5fb8 to service context 0x110fb5d98
    4 ETW000                                                                           41433  0.060371
    4 ETW000  [dev trc     ,00000]  Allocating user session handle                        89  0.060460
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=0x110fb5d98,srvhp=0x110fb5fb8,usrhp=0x110fa2560)
    4 ETW000                                                                              58  0.060518
    4 ETW000  [dev trc     ,00000]  Assigning user session 0x110fa2560 to service context 0x110fb5d98
    4 ETW000                                                                           11081  0.071599
    4 ETW000  [dev trc     ,00000]         BEGIN DBMS_APPLICATION_INFO.SET_MODULE (:A0, :A1); END;                                                              
    4 ETW000                                                                              83  0.071682
    4 ETW000  [dev trc     ,00000]         BEGIN DBMS_APPLICATION_INFO.SET_CLIENT_INFO (:A0); END;                                                              
    4 ETW000                                                                             212  0.071894
    4 ETW000  [dev trc     ,00000]  Now '/@PRD' is connected (con_hdl 0, nls_hdl 0).
    4 ETW000                                                                            1018  0.072912
    4 ETW000  [dev trc     ,00000]         ALTER SESSION SET NLS_SORT = BINARY                                                                               
    4 ETW000                                                                              58  0.072970
    4 ETW000  [dev trc     ,00000]         SELECT USERID, PASSWD FROM SAPUSER WHERE USERID IN (:A0, :A1)                                                        
    4 ETW000                                                                             417  0.073387
    4 ETW000  [dev trc     ,00000]  OCI-call failed with -1=OCI_ERROR                    960  0.074347
    4 ETW000  [dev trc     ,00000]     SQL error 942: 'ORA-00942: table or view does not exist'
    4 ETW000                                                                              48  0.074395
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => ORA-942 when accessing table SAPUSER
    4 ETW000                                                                              53  0.074448
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 942          28  0.074476
    4 ETW000  [dev trc     ,00000]  Disconnecting from connection 0 ...                   87  0.074563
    4 ETW000  [dev trc     ,00000]  Rolling back transaction ...                          34  0.074597
    4 ETW000  [dev trc     ,00000]  Closing user session (con_hdl=0,svchp=0x110fb5d98,usrhp=0x110fa2560)
    4 ETW000                                                                             187  0.074784
    4 ETW000  [dev trc     ,00000]  Now I'm disconnected from ORACLE                     486  0.075270
    4 ETW000  [dev trc     ,00000]  Try to connect with default password                  29  0.075299
    4 ETW000  [dev trc     ,00000]  Connecting as SAPSR3/<pwd>@PRD on connection 0 (nls_hdl 0) ... (dbsl 700 250407)
    4 ETW000                                                                              48  0.075347
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              51  0.075398
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1 0x110f9a780 0x110fb2bf8 0x110fb24a8
    4 ETW000                                                                              63  0.075461
    4 ETW000  [dev trc     ,00000]  Assigning username to user session 0x110fa2560        30  0.075491
    4 ETW000  [dev trc     ,00000]  Assigning password to user session 0x110fa2560        43  0.075534
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=0x110fb5d98,srvhp=0x110fb5fb8,usrhp=0x110fa2560)
    4 ETW000                                                                              52  0.075586
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1017
    4 ETW000                                                                           22605  0.098191
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1017'
    4 ETW000                                                                              48  0.098239
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 1017         29  0.098268
    4 ETW000  [dblink      ,00431]  ***LOG BY2=>sql error 1017   performing CON [dblink#3 @ 431]
    4 ETW000                                                                             141  0.098409
    4 ETW000  [dblink      ,00431]  ***LOG BY0=>ORA-01017: invalid username/password; logon denied [dblink#3 @ 431]
    4 ETW000                                                                              47  0.098456
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'PRD'"
    In node 2 of a Cluster System I have the Test instance. The solution that we proposed is with two instances of RDBMS Oracle (one in Node 1, and other in Node 2) for productive system. In Node 2, we have 2 instances of Oracle in Node 2.
    listener.ora:
    epsbgst:oraprd 12> cat listener.ora
    Filename......: listener.ora
    Created.......: created by SAP AG, R/3 Rel. >= 6.10
    Name..........:
    Date..........:
    @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/LISTENER.ORA#4 $
    ADMIN_RESTRICTIONS_LISTENER = on
    LISTENER =
      (ADDRESS_LIST =
            (ADDRESS =
              (PROTOCOL = IPC)
              (KEY = PRD.WORLD)
            (ADDRESS=
              (PROTOCOL = IPC)
              (KEY = PRD)
            (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = epsbgst)
              (PORT = 1537)
    STARTUP_WAIT_TIME_LISTENER = 0
    CONNECT_TIMEOUT_LISTENER = 10
    TRACE_LEVEL_LISTENER = OFF
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PRD)
          (ORACLE_HOME = /oracle/PRD/102_64)
    tnsnames.ora:
    epsbgst:oraprd 13> cat tnsnames.ora
    Filename......: tnsnames.ora
    Created.......: created by SAP AG, R/3 Rel. >= 6.10
    Name..........:
    Date..........:
    @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/TNSNAMES.ORA#4 $
    PRD.WORLD=
      (DESCRIPTION =
        (ADDRESS_LIST =
            (ADDRESS =
              (COMMUNITY = SAP.WORLD)
              (PROTOCOL = TCP)
              (HOST = epsbgst)
              (PORT = 1537)
        (CONNECT_DATA =
           (SID = PRD)
           (GLOBAL_NAME = PRD.WORLD)
    sqlnet.ora:
    epsbgst:oraprd 15> cat sqlnet.ora
    Filename......: sqlnet.ora
    Created.......: created by SAP AG, R/3 Rel. >= 6.10
    Name..........:
    Date..........:
    @(#) $Id: //bc/700-1_REL/src/ins/SAPINST/impl/tpls/ora/ind/SQLNET.ORA#4 $
    AUTOMATIC_IPC = ON
    TRACE_LEVEL_CLIENT = OFF
    NAMES.DEFAULT_DOMAIN = WORLD
    05.01.06 unsorported parameter now
    #NAME.DEFAULT_ZONE = WORLD
    05.01.06 set the default to 10
    SQLNET.EXPIRE_TIME = 10
    05.01.06 set to default
    #TCP.NODELAY=YES
    05.01.06 set to 32768
    DEFAULT_SDU_SIZE=32768
    How I can see with what user and password the R3trans try to connect to database??
    I have read the following notes:
    Note 400241
    Note 50088
    Note 361641
    I am trying with this script that I have readed in NOTE 361641 :
    sqlplus /NOLOG @?/rdbms/admin/oradbusr.sql SAPPRD UNIX PRD X;
    But these throw No Match. I think the problem is that I have not filled the fields with correct values.
    If I executed this script:
    SELECT OWNER FROM DBA_TABLES WHERE TABLE_NAME = 'T000';
    The result is:
    SAPSR3
    The SAP System ID (SAPSID) = PRD
    Database ID (DBSID) = PRD
    Thanks you very much in advance!!!

    I have executed the R3trans -x with oraprd user.
    The answer to your query is:
    SQL> select owner from dba_tables where table_name='SAPUSER';
    OWNER
    OPS$PRDADM
    I have executed the R3trans also with prdadm, this is the result:
    epsbgst:prdadm 7> cat trans.log
    4 ETW000 R3trans version 6.14 (release 700 - 15.06.07 - 15:50:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 16.03.2008 - 15:44:23
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -x
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Sun Mar 16 15:44:23 2008                              76  0.000076
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    28  0.000104
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                             49  0.000153
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/PRD/SYS/exe/run/dboraslib.o' ...
    4 ETW000                                                                              69  0.000222
    4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/PRD/SYS/exe/run/dboraslib.o), hdl 0
    4 ETW000                                                                            5735  0.005957
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/PRD/SYS/exe/run/dboraslib.o' loaded
    4 ETW000                                                                              45  0.006002
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/PRD/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              50  0.006052
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/PRD/SYS/exe/run/dboraslib.o' is "700.08", patchlevel (0.107)
    4 ETW000                                                                             207  0.006259
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/PRD/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              48  0.006307
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/PRD/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              75  0.006382
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              35  0.006417
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              56  0.006473
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         48  0.006521
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              44  0.006565
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              53  0.006618
    4 ETW000  [dev trc     ,00000]  Got LIBPATH=/usr/lib:/lib:/usr/sap/PRD/SYS/exe/run:/oracle/client/10x_64/instantclient from environment
    4 ETW000                                                                             391  0.007009
    4 ETW000  [dev trc     ,00000]  Oracle Client Version: '10.2.0.2.0'                   73  0.007082
    4 ETW000  [dev trc     ,00000]  -->oci_initialize (con_hdl=0)                         30  0.007112
    4 ETW000  [dev trc     ,00000]  Client NLS settings: AMERICAN_AMERICA.UTF8          2073  0.009185
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPSR3's password           40  0.009225
    4 ETW000  [dev trc     ,00000]  Connecting as /@PRD on connection 0 (nls_hdl 0) ... (dbsl 700 250407)
    4 ETW000                                                                              48  0.009273
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              54  0.009327
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1 0x110f990c0 0x110fb1538 0x110fb0de8
    4 ETW000                                                                              61  0.009388
    4 ETW000  [dev trc     ,00000]  Allocating service context handle for con_hdl=0       38  0.009426
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      32  0.009458
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server PRD (con_hdl=0,svchp=0x110fb46d8,srvhp=0x110fb48f8)
    4 ETW000                                                                              86  0.009544
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIServerAttach' failed with rc=12541
    4 ETW000                                                                            4950  0.014494
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '12541'
    4 ETW000                                                                              49  0.014543
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 12541        29  0.014572
    4 ETW000  [dev trc     ,00000]  Try to connect with default password                  86  0.014658
    4 ETW000  [dev trc     ,00000]  Connecting as SAPSR3/<pwd>@PRD on connection 0 (nls_hdl 0) ... (dbsl 700 250407)
    4 ETW000                                                                              49  0.014707
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              50  0.014757
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1 0x110f990c0 0x110fb1538 0x110fb0de8
    4 ETW000                                                                              51  0.014808
    4 ETW000  [dev trc     ,00000]  server_detach(con_hdl=0,stale=0,svrhp=0x110fb48f8)
    4 ETW000                                                                              46  0.014854
    4 ETW000  [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=0x110fb46d8,srvhp=0x110fb48f8)
    4 ETW000                                                                              46  0.014900
    4 ETW000  [dev trc     ,00000]  Deallocating server context handle 0x110fb48f8        32  0.014932
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      31  0.014963
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server PRD (con_hdl=0,svchp=0x110fb46d8,srvhp=0x110fb48f8)
    4 ETW000                                                                              53  0.015016
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCIServerAttach' failed with rc=12541
    4 ETW000                                                                            2022  0.017038
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '12541'
    4 ETW000                                                                              47  0.017085
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 12541        28  0.017113
    4 ETW000  [dblink      ,00431]  ***LOG BY2=>sql error 12541  performing CON [dblink#3 @ 431]
    4 ETW000                                                                             140  0.017253
    4 ETW000  [dblink      ,00431]  ***LOG BY0=>ORA-12541: TNS:no listener [dblink#3 @ 431]
    4 ETW000                                                                              46  0.017299
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'PRD'"
    The listener are running with oraprd user.
    Can you help me??
    Thanks you very much in advance!!

  • ORA-01017: invalid username/password; logon denied - in DB13

    Hello,
    We have upgraded successfully from SAP 4.7 / Oracle 9i to ECC 6.0/
    Oracle 10g but now the jobs from DB13 are failing. Please find the
    error details below.
    We have followed the correction steps mentioned in notes: 400241,
    437648 and 134592. But the same error persists.
    Please help us resolve the issue ASAP.
    Error Details:
    Job started                                                                 
    Step 001 started (program RSDBAJOB, variant &0000000000201, user ID PWCBASIS)
    Execute logical command BRCONNECT On host eccdev                            
    Parameters: -u / -jid CHECK20081107160528 -c -f check                       
    BR0801I BRCONNECT 7.00 (32)                                                 
    BR0805I Start of BRCONNECT processing: cdzezhoc.chk 2008-11-07 16.05.30     
    BR0484I BRCONNECT log file: /oracle/DEV/sapcheck/cdzezhoc.chk               
    BR0280I BRCONNECT time stamp: 2008-11-07 16.05.30                           
    BR0301E SQL error -1017 at location db_connect-2,SQL statement:             
    'CONNECT /'                                                                 
    ORA-01017: invalid username/password; logon denied                          
    BR0310E Connect to database instance DEV failed                             
    BR0280I BRCONNECT time stamp: 2008-11-07 16.05.30                           
    BR0301E SQL error -1017 at location db_connect-2,SQL statement:             
    'CONNECT /'                                                                 
    ORA-01017: invalid username/password; logon denied                          
    BR0310E Connect to database instance DEV failed                                                                               
    BR0806I End of BRCONNECT processing: cdzezhoc.chk2008-11-07 16.05.30        
    BR0280I BRCONNECT time stamp: 2008-11-07 16.05.30                           
    BR0804I BRCONNECT terminated with errors                                    
    External program terminated with exit code 3                                
    BRCONNECT returned error status E                                           
    Job finished 
    Please help me resolve this issue....
    Thanks

    Hi ,
    Yes am able to execute brtools from both the users, viz <sid>adm and ora<sid>. And also able to execute all the scripts from there itself.
    For your refrence, find the logs form /usr/sap/DEV/DVEBMGS00/work/dev_w0 file.
    Thu Nov 20 13:22:34 2008
    M  kernel runs with dp version 241(ext=110) (@(#) DPLIB-INT-VERSION-241)
    M  length of sys_adm_ext is 364 bytes
    M  ***LOG Q01=> ThInit, WPStart (Workproc 0 1 10354) [thxxhead.c   1290]
    M  ThInit: running on host eccdev
    M  calling db_connect ...
    C  Oracle Client Version: '10.2.0.2.0'
    C  Client NLS settings: AMERICAN_AMERICA.WE8DEC
    C  Logon as OPS$-user to get SAPPRD's password
    C  Connecting as /@DEV on connection 0 (nls_hdl 0) ... (dbsl 700 030508)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 WE8DEC                                                    1  10595f0a0  105966b40  10596a4e8
    C  Attaching to DB Server DEV (con_hdl=0,svchp=10596a418,srvhp=10596c748)
    C  Starting user session (con_hdl=0,svchp=10596a418,srvhp=10596c748,usrhp=105967358)
    C  *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1017
    [dboci.c      4532]
    C  *** ERROR => CONNECT failed with sql error '1017'
    [dbsloci.c    11145]
    C  Try to connect with default password
    C  Connecting as SAPPRD/<pwd>@DEV on connection 0 (nls_hdl 0) ... (dbsl 700 030508)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 WE8DEC                                                    1  10595f0a0  105966b40  10596a4e8
    C  Starting user session (con_hdl=0,svchp=10596a418,srvhp=10596c748,usrhp=105967358)

    Please suggest,
    Kshitiz Goyal

  • ORA-01017: invalid username/password; logon denied quality system refresh from production

    Dear All;
    I am in the post activities of SAP system refresh.
    I restored the system using brtools successfully as you can see below:
    then I went with the rest of the steps based on sap recomendations, and reached to SAP sql queries:
    CREATE USER "OPS$<DOMAIN>\<SID>ADM" DEFAULT TABLESPACE SYSTEM TEMPORARY TABLESPACE PSAPTEMP IDENTIFIED EXTERNALLY;
    CREATE USER "OPS$<DOMAIN>\SAPSERVICE<SID>" DEFAULT TABLESPACE SYSTEM TEMPORARY TABLESPACE PSAPTEMP IDENTIFIED EXTERNALLY;
    GRANT CONNECT, RESOURCE, SAPDBA TO "OPS$<DOMAIN>\<SID>ADM";
    GRANT CONNECT, RESOURCE, SAPDBA TO "OPS$<DOMAIN>\SAPSERVICE<SID>";
    CREATE TABLE "OPS$<DOMAIN>\<SID>ADM".SAPUSER (USERID VARCHAR2(256), PASSWD VARCHAR2(256));
    INSERT INTO "OPS$<DOMAIN>\<SID>ADM".SAPUSER VALUES ('SAPSR3', '<Password>');
    CREATE SYNONYM "OPS$<DOMAIN>\SAPSERVICE<SID>".SAPUSER FOR "OPS$<DOMAIN>\<SID>ADM".SAPUSER;
    CONNECT /
    GRANT SELECT, UPDATE ON "OPS$<DOMAIN>\<SID>ADM".SAPUSER TO "OPS$<DOMAIN>\SAPSERVICE<SID>";
    CONNECT /as sysdba
    GRANT CONNECT, RESOURCE TO "OPS$<DOMAIN>\SAPSERVICE<SID>";
    GRANT CONNECT, RESOURCE TO "OPS$<DOMAIN>\<SID>ADM";
    I checked if all users are on opened state using select USERNAME,ACCOUNT_STATUS from dba_users;
    The database is running file, and it is opened, but when I run R3trans -d it gives me RC 12 and i get this error:
    *** ERROR => CONNECT failed with sql error '1017'
    set_ocica() -> SQL error code 1017
    -->oci_get_errmsg (con=0, rc=1017)
    OCIErrorGet -> SQL error code: 1017
    ORA-01017: invalid username/password; logon denied
    DbSlConnect(con=0) -> orc=0, 99=DBSL_ERR_DB
    ***LOG BY2=>sql error 1017   performing CON
    ***LOG BY0=>ORA-01017: invalid username/password; logon denied
    I used brconnect -u / -f chpass -o PSAPSR3 -p sap so i can reset the password, but still I am getting the same invalid username or password error.
    I checked the listener status, and it is running.
    Kindly let me know how I can fix my error
    Best Regards
    ~Amal Aloun

    Dear Gaurav;
    I am running SAP Kernel 720 64bit unicode PL300
    The content of my trans log file is the following:
    4 ETW000 r3trans version 6.23 (release 720 - 15.05.12 - 20:12:03).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 05.08.2014 - 17:50:30
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: r3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [     dev trc,00000]  Tue Aug 05 17:50:30 2014                                                 149  0.000149
    4 ETW000  [     dev trc,00000]  db_con_init called                                                        27  0.000176
    4 ETW000  [     dev trc,00000]  set_use_ext_con_info(): rsdb/ssfs_connect not set => ssfs not used        41  0.000217
    4 ETW000  [     dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3
    4 ETW000                                                                                                  28  0.000245
    4 ETW000  [     dev trc,00000]  create_con (con_name=R/3)                                                 14  0.000259
    4 ETW000  [     dev trc,00000]  Loading DB library 'dboraslib.dll' ...                                    44  0.000303
    4 ETW000  [     dev trc,00000]  DlLoadLib success: LoadLibrary("dboraslib.dll"), hdl 0, addr 000007FEF1650000
    4 ETW000                                                                                                 947  0.001250
    4 ETW000  [     dev trc,00000]      using "E:\usr\sap\TST\SYS\exe\uc\NTAMD64\dboraslib.dll"               18  0.001268
    4 ETW000  [     dev trc,00000]  Library 'dboraslib.dll' loaded                                            19  0.001287
    4 ETW000  [     dev trc,00000]  function DbSlExpFuns loaded from library dboraslib.dll                    23  0.001310
    4 ETW000  [     dev trc,00000]  Version of 'dboraslib.dll' is "720.00", patchlevel (0.215)               242  0.001552
    4 ETW000  [     dev trc,00000]  function dsql_db_init loaded from library dboraslib.dll                   26  0.001578
    4 ETW000  [     dev trc,00000]  function dbdd_exp_funs loaded from library dboraslib.dll                  34  0.001612
    4 ETW000  [     dev trc,00000]  New connection 0 created                                                 237  0.001849
    4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog = 
    4 ETW000                                                                                                  56  0.001905
    4 ETW000  [     dev trc,00000]  db_con_connect (con_name=R/3)                                             20  0.001925
    4 ETW000  [     dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3
    4 ETW000                                                                                                  25  0.001950
    4 ETW000  [     dev trc,00000]  find_con_by_name found the following connection:                          16  0.001966
    4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog = 
    4 ETW000                                                                                                  36  0.002002
    4 ETW000  [     dev trc,00000]  -->DbSlConnect(vers=-1, type=0, env='[default env]', userid='[default usr]')
    4 ETW000                                                                                                  53  0.002055
    4 ETW000  [     dev trc,00000]  DIR_CLIENT_ORAHOME is not set as profile nor env. parameter.             574  0.002629
    4 ETW000                        Assuming using instant client with unspecified location.
    4 ETW000  [     dev trc,00000]  Register application info.                                                97  0.002726
    4 ETW000  [     dev trc,00000]  Oracle client version: 10.2.0.4.0, (dbsl 720 220612, UNICODE[2])       10033  0.012759
    4 ETW000  [     dev trc,00000]  Detailed Oracle client (patch) info not available.                        30  0.012789
    4 ETW000  [     dev trc,00000]    Default connection: tnsname ='TST'                                      73  0.012862
    4 ETW000  [     dev trc,00000]  -->oci_initialize(con=0, char='UTF16', nchar='AL16UTF16', nls=-1),uc_ln=2
    4 ETW000                                                                                                  50  0.012912
    4 ETW000  [     dev trc,00000]  OCIEnvCreate(mode=16384=OCI_UTF16) returned 0 (for default NLS handle)
    4 ETW000                                                                                                1828  0.014740
    4 ETW000  [     dev trc,00000]     OCIHandleAlloc(OCI_HTYPE_ERROR, con=0, ErrHp=027944B0)                 58  0.014798
    4 ETW000  [     dev trc,00000]     OCIHandleAlloc(OCI_HTYPE_ERROR, con=0, ErrBt=02796088)                 36  0.014834
    4 ETW000  [     dev trc,00000]  NLS env. settings: lang=41004D00450052004900430041004E00                 167  0.015001
    4 ETW000  [     dev trc,00000]                     terr=41004D0045005200490043004100                      29  0.015030
    4 ETW000  [     dev trc,00000]                     char=55005400460031003600                              22  0.015052
    4 ETW000  [     dev trc,00000]  Client NLS setting (by OCINlsGetInfo(con=0)): 'AMERICAN_AMERICA.UTF16'
    4 ETW000                                                                                                  43  0.015095
    4 ETW000  [     dev trc,00000]  charset='UTF16', ncharset='AL16UTF16', UNI_ASC=FALSE                      19  0.015114
    4 ETW000  [     dev trc,00000]  Logon as OPS$-user to get SAPSR3's password                               28  0.015142
    4 ETW000  [     dev trc,00000]  Connecting as /@TST on connection 0 (nls 0) ... (dbsl 720 220612, UNICODE[2])
    4 ETW000                                                                                                  61  0.015203
    4 ETW000  [     dev trc,00000]     OCIHandleAlloc(OCI_HTYPE_SVCCTX, con=0, svchp=02795F48)               370  0.015573
    4 ETW000  [     dev trc,00000]  Allocating server context handle                                          31  0.015604
    4 ETW000  [     dev trc,00000]  Attaching to database server TST (con=0, svchp=02795F48, srvhp=0279EFF8)
    4 ETW000                                                                                                  74  0.015678
    4 ETW000  [     dev trc,00000]  Assigning server context 0279EFF8 to service context 02795F48          30008  0.045686
    4 ETW000  [     dev trc,00000]     OCIHandleAlloc(OCI_HTYPE_SESSION, con=0, usrhp=027ABBE0)               86  0.045772
    4 ETW000  [     dev trc,00000]  Starting user session: OCISessionBegin(con=0, usr='/', svc=02795F48, srv=0279EFF8, usr=027ABBE0)
    4 ETW000                                                                                                  40  0.045812
    4 ETW000  [     dev trc,00000]     OCISessionBegin(OCI_DEFAULT) failed with -1=OCI_ERROR               28164  0.073976
    4 ETW000  [     dev trc,00000]     OCISessionBegin(OCI_DEFAULT) failed with SQL error 1017:               95  0.074071
    4 ETW000  [     dev trc,00000]     ORA-01017: invalid username/password; logon denied                                                                       
    4 ETW000                                                                                                  39  0.074110
    4 ETW000  [    dbsloci.,00000]  *** ERROR => CONNECT failed with sql error '1017'                         38  0.074148
    4 ETW000  [     dev trc,00000]     set_ocica() -> SQL error code 1017                                     19  0.074167
    4 ETW000  [     dev trc,00000]  -->oci_get_errmsg (con=0, rc=1017)                                        20  0.074187
    4 ETW000  [     dev trc,00000]     OCIErrorGet -> SQL error code: 1017                                    57  0.074244
    4 ETW000  [     dev trc,00000]     ORA-01017: invalid username/password; logon denied                                                                       
    4 ETW000                                                                                                  39  0.074283
    4 ETW000  [     dev trc,00000]  Info: 99=DBSL_ERR_DB, oerr=1017, try to connect with default password.
    4 ETW000                                                                                                  38  0.074321
    4 ETW000  [     dev trc,00000]  Connecting as SAPSR3/<pwd>@TST on connection 0 (nls 0) ... (dbsl 720 220612, UNICODE[2])
    4 ETW000                                                                                                  30  0.074351
    4 ETW000  [     dev trc,00000]  Assigning username to user session: con=0, usrhp= 027ABBE0                23  0.074374
    4 ETW000  [     dev trc,00000]  Assigning password to user session: con=0, usrhp=027ABBE0                 36  0.074410
    4 ETW000  [     dev trc,00000]  Starting user session: OCISessionBegin(con=0, usr='SAPSR3', svc=02795F48, srv=0279EFF8, usr=027ABBE0)
    4 ETW000                                                                                                 133  0.074543
    4 ETW000  [     dev trc,00000]  Tue Aug 05 17:50:40 2014                                             9992977  10.067520
    4 ETW000  [     dev trc,00000]     OCISessionBegin(OCI_DEFAULT) failed with -1=OCI_ERROR                  33  10.067553
    4 ETW000  [     dev trc,00000]     OCISessionBegin(OCI_DEFAULT) failed with SQL error 1017:               85  10.067638
    4 ETW000  [     dev trc,00000]     ORA-01017: invalid username/password; logon denied                                                                       
    4 ETW000                                                                                                  37  10.067675
    4 ETW000  [    dbsloci.,00000]  *** ERROR => CONNECT failed with sql error '1017'                         29  10.067704
    4 ETW000  [     dev trc,00000]     set_ocica() -> SQL error code 1017                                     19  10.067723
    4 ETW000  [     dev trc,00000]  -->oci_get_errmsg (con=0, rc=1017)                                        18  10.067741
    4 ETW000  [     dev trc,00000]     OCIErrorGet -> SQL error code: 1017                                    55  10.067796
    4 ETW000  [     dev trc,00000]     ORA-01017: invalid username/password; logon denied                                                                       
    4 ETW000                                                                                                  52  10.067848
    4 ETW000  [     dev trc,00000]     DbSlConnect(con=0) -> orc=0, 99=DBSL_ERR_DB                            22  10.067870
    4 ETW000  [    dblink  ,00000]  ***LOG BY2=>sql error 1017   performing CON                               58  10.067928
    4 ETW000  [    dblink  ,00000]  ***LOG BY0=>ORA-01017: invalid username/password; logon denied            22  10.067950
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'TST'"
    Best Regards
    ~Amal Aloun

  • ORA-01017: invalid username/password; logon denied error...Help Please!!!

    when I log into either a Unix server or a windows server, I use the same account GILLR, and as such I created an account in the DB as OPS$GILLR and issued the follwing command:
    CREATE USER OPS$GILLR IDENTIFIED EXTERNALLY DEFAULT
    GRANT CREATE SESSION TO "GILLR"
    then when I run:
    GILLR@csc08> sqlplus /
    SQL*Plus: Release 9.2.0.4.0 - Production on Wed Aug 3 08:19:52 2005
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    ERROR:
    ORA-01017: invalid username/password; logon denied
    Enter user-name:
    Now I followed steps that were provided to me from the ASKTOM site and I even found some solutions to this error, but nothing worked. Does anyone know why I can not use OS_AUTH on any of the servers here?

    WOW!!!!! Adding in the DOMAIN into the OPS$DOMAIN\USER worked....Thanks for your help. Now I have one other question. You stated "ypur client computer and Oracle server computer should be in the same domain" What is I have users in Domain X and some users in Domain Y. When they hit some website, they have the option to select the Domain and enter their credentials. If the user has the ability to select the domain then does it really matter if the client machine is on the same domain as the DB server. I mean, the user maybe from Domain X but the DB server might be on Domain Z. The client machine and web server might be both Windows server, but when the webb app makes a call to the DB using proxxy connection, the proxxy account will take the user OPS$DOMAIN'X'\USER and make a call to the DB. How can I handle this problem?

  • ORA-01017: invalid username/password; after Oracle Upgrade 9.2.06 to 10.2

    Hi
    I did an oracle Upgrade from Oracle Upgrade 9.2.06 to 10.2 as per SAP Documentation.
    and after the upgrade was successful i changed the password of SAPABT (sapowner)
    and now it is giving an error in work folder  <b>dev_wo</b>
    while connecting can any one help please ?
    Tue Feb 06 18:55:20 2007
    C  Client NLS settings: AMERICAN_AMERICA.WE8DEC
    C  Logon as OPS$-user to get SAPABT's password
    C  Connecting as /@ABT on connection 0 (nls_hdl 0) ... (dbsl 640 110706)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 WE8DEC                                                    1   044FAB58   045000D4   044FF95C
    C  Attaching to DB Server ABT (con_hdl=0,svchp=044FF8A8,svrhp=04503F14)
    C  Starting user session (con_hdl=0,svchp=044FF8A8,srvhp=04503F14,usrhp=08C48D68)
    C  Now '/@ABT' is connected (con_hdl 0, nls_hdl 0).
    C  Got SAPABT's password from OPS$-user
    C  Disconnecting from connection 0 ...
    C  Close user session (con_hdl=0,svchp=044FF8A8,usrhp=08C48D68)
    C  Now I'm disconnected from ORACLE
    C  Connecting as SAPABT/<pwd>@ABT on connection 0 (nls_hdl 0) ... (dbsl 640 110706)
    C  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    C    0 WE8DEC                                                    1   044FAB58   045000D4   044FF95C
    C  Starting user session (con_hdl=0,svchp=044FF8A8,srvhp=04503F14,usrhp=08C48D68)
    C  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1017
    [dboci.c      4473]
    C  *** ERROR => CONNECT failed with sql error '1017'
    [dbsloci.c    11297]
    B  ***LOG BY2=> sql error 1017   performing CON [dbsh#3 @ 1204] [dbsh    1204 ]
    B  ***LOG BY0=> ORA-01017: invalid username/password; logon denied [dbsh#3 @ 1204] [dbsh    1204 ]
    B  ***LOG BY2=> sql error 1017   performing CON [dblink#2 @ 419] [dblink  0419 ]
    B  ***LOG BY0=> ORA-01017: invalid username/password; logon denied [dblink#2 @ 419] [dblink  0419 ]
    M  ***LOG R19=> tskh_init, db_connect ( DB-Connect 000256) [thxxhead.c   1284]

    SQL> connect / as sysdba
    Connected.
    SQL> SELECT OWNER FROM DBA_TABLES WHERE TABLE_NAME = 'SAPUSER';
    OWNER
    OPS$CTSINTCOSNW5\ABTADM
    SQL> SELECT OWNER, TABLE_OWNER, TABLE_NAME FROM DBA_SYNONYMS WHERE SYNONYM_NAME
    = 'SAPUSER';
    OWNER                          TABLE_OWNER
    TABLE_NAME
    OPS$CTSINTCOSNW5\SAPSERVICEABT OPS$CTSINTCOSNW5\ABTADM
    SAPUSER
    SQL>
    Followed the note 400241       Problems with ops$ or sapr3 connect to Oracle       
    Problem got solved via the
    Updating BR * Tools
    brconnect -u / -c -f stats -t all -f collect -p 4 in  Oracle Database Guide 4.3.6 BRCONNECT
    Call BRTOOLS, Select Additional Functions --> Change password for database user.
    in my case it is sapabt user
    Thanks for the quick reply

  • Unable to connect (invalid username/password)

    Hi there.
    I have major problems with connecting to iFS. The db and iFS is running on a remot machine under solaris and i use a windows nt machine. I use iFS 1.1, jdk 1.3 and the jdbc driver for jdk 1.2 that is provided by the oracle website. I am sure that the username and the password are right. Is there a special Here is the code i use for connecting:
    LibraryService ls = new LibraryService();
    LibrarySession session = null;
    CleartextCredential me = new CleartextCredential(user, password);
    ConnectOptions connect = new ConnectOptions();
    connect.setLocale(Locale.getDefault());
    connect.setServiceName(service);
    connect.setServicePassword(password);
    session = ls.connect(me, connect);
    And here is the exception:
    oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
    oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
    at oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:1500)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:310)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:200)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:251)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
    at java.sql.DriverManager.getConnection(DriverManager.java:517)
    at java.sql.DriverManager.getConnection(DriverManager.java:177)
    at oracle.ifs.server.LibraryConnection.<init>(LibraryConnection.java:235)
    at oracle.ifs.server.ConnectionPool.createLibraryConnection(ConnectionPool.java:576)
    at oracle.ifs.server.ConnectionPool.<init>(ConnectionPool.java:321)
    at oracle.ifs.server.S_LibraryService.<init>(S_LibraryService.java:912)
    at oracle.ifs.server.S_LibraryService.startService(S_LibraryService.java:1129)
    at oracle.ifs.beans.LibraryService.connectLocal(LibraryService.java:408)
    at oracle.ifs.beans.LibraryService.connect(LibraryService.java:280)
    at com.ifbus.XSP.oracleifs.IfsUtils.startIfsSession(IfsUtils.java:141)
    at com.ifbus.XSP.oracleifs.IfsUtils.startIfsSession(IfsUtils.java:103)
    at C._Programme._tomcat_3_2_1._webapps._archiv._site._startsession.populateDocument(_startsession.java:108)
    at org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:96)
    at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:516)
    at org.apache.cocoon.Engine.handle(Engine.java:370)
    at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
    at org.apache.tomcat.core.Handler.service(Handler.java:286)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
    at java.lang.Thread.run(Thread.java:484)
    DEBUG: XIfsException.toDOM( [#document-fragment: null] )
    DEBUG: XIfsException.toDOM([#document: null], oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool)
    DEBUG: XIfsException.toDOM([#document: null], oracle.ifs.common.IfsException: IFS-10633: Unable to create library connection
    oracle.ifs.common.IfsException: IFS-10600: Unable to construct library connection
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    DEBUG: XIfsException.toDOM([#document: null], oracle.ifs.common.IfsException: IFS-10600: Unable to construct library connection
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    null

    Which HTTP Listener are you using... This stack trace looks strange. I would expect to see reference to org.apache.jserv if you were running a supported environment. The supported Web Servers are JWS which comes with iFS, and Oracle HTTP Listener, which comes with 8.1.7 or iAS 1.0.2
    Also please try with JDBC11 and let me know if this works

  • Brconnect fails :ORA-01017: invalid username/password; logon denied

    Hi,
    BRtools not working.
    C:\Documents and Settings\r47adm>sqlplus /
    SQL*Plus: Release 10.2.0.4.0 - Production on Tue Sep 14 14:31:44 2010
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    ERROR:
    ORA-01017: invalid username/password; logon denied
    Sap is able to connect with default password for schema id.
    Tried the Note 400241 - Problems with ops$ or sapr3 connect to Oracle
    still the brtools are failing with  ora 1017
    Trans.log;
    Logon as OPS$-user to get SAPR47's password           18  0.019364
    4 ETW000  [dev trc     ,00000]  Connecting as /@R47 on connection 0 (nls_hdl 0) ... (dbsl 700 250407)
    4 ETW000                                                                              27  0.019391
    4 ETW000  [dev trc     ,00000]  Nls CharacterSet                 NationalCharSet              C      EnvHp      ErrHp ErrHpBatch
    4 ETW000                                                                              27  0.019418
    4 ETW000  [dev trc     ,00000]    0 UTF8                                                      1 000000000755F090 00000000003157A0 000000000031AF68
    4 ETW000                                                                              95  0.019513
    4 ETW000  [dev trc     ,00000]  Allocating service context handle for con_hdl=0       23  0.019536
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      15  0.019551
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server R47 (con_hdl=0,svchp=000000000031AE28,srvhp=000000000757E0E8)
    4 ETW000                                                                              47  0.019598
    4 ETW000  [dev trc     ,00000]  Assigning server context 000000000757E0E8 to service context 000000000031AE28
    4 ETW000                                                                           35921  0.055519
    4 ETW000  [dev trc     ,00000]  Allocating user session handle                        32  0.055551
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=000000000031AE28,srvhp=000000000757E0E8,usrhp=0000000000315FB8)
    4 ETW000                                                                              34  0.055585
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1017
    4 ETW000                                                                           60400  0.115985
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1017'
    4 ETW000                                                                              35  0.116020
    4 ETW000  [dev trc     ,00000]     set_ocica() -> OCI or SQL return code 1017         17  0.116037
    4 ETW000  [dev trc     ,00000]  Try to connect with default password                  56  0.116093
    4 ETW000  [dev trc     ,00000]  Connecting as SAPR47/<pwd>@R47 on connection 0 (nls_hdl 0) ... (dbsl 700 250407)

    I faced Issue with OPS$ user mechanism in two scenario
      Unable to create/delete user as identifier exceeds 30 characters
    1. The installation terminates when you create the OPS$ users (step
    ORADBUSER_NT_ORA)
    As per SAP Note 314671 - Long WINDOWS domain names and Oracle 8.1.x or higher
       Set the parameter  os_authent_prefix = "" In parameter file initR47.ora
    Restart the DB for parameter to take effect then continue with installation
    2. the system does not start because the OPS$ users were not created correctly.
        You can set the default password for SCHEMAID (SAP<SID>) in table sapuser table. Hence the work process connects with default password and you can run the system smoothly.but the brtools (brconnect DB13) will fail as they try to connect using (Connect /) ops$ user
    By setting the parameter os_authent_prefix = "" and running the ORADBUSR.SQL SQL did not work.
    We can avoid this by setting parameter os_authent_prefix = O$
    This reduces the username by two characters (OPS$CTSGVCSAPBL09\SAPSERVICER47 to O$CTSGVCSAPBL09\SAPSERVICER47)

  • Getting invalid username/password error while trying to create_queue_table

    Here is how I get it.
    connect / as sysdba
    create user aq identified by aq
    default tablespace users
    temporary tablespace temp
    quota unlimited on users;
    grant connect,
    create type,
    create procedure,
    aq_administrator_role
    to aq;
    grant execute on dbms_aq to aq;
    grant execute on dbms_aqadm to aq;
    begin
    dbms_aqadm.grant_system_privilege('ENQUEUE_ANY','AQ',FALSE);
    dbms_aqadm.grant_system_privilege('DEQUEUE_ANY','AQ',FALSE);
    end;
    connect aq/aq
    create Type aq.message_typ as object (
    subject Varchar2(30), text Varchar2(80)
    begin
    dbms_aqadm.create_queue_table(
    queue_table => 'aq.objmsgs80_qtab',
    queue_payload_type => 'aq.Message_typ',
    multiple_consumers => true);
    end;
    Error at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2934
    ORA-06512: at "SYS.DBMS_AQADM", line 58
    ORA-06512: at line 2

    In what version of Oracle?
    I see a couple of problems assuming you are working with a currently supported version:
    1. Never grant CONNECT to anyone: Ever. Grant CREATE SESSION.
    2. GRANT CREATE TABLE to AQ;
    Go to Morgan's Library at www.psoug.org and look at AQ Demo 1. You should have no problem cutting and pasting your way to where you are trying to go.

  • 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
    Sadock

    Hi 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

  • 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

  • Db link - invalid username/password error

    hi
    i created a connected user public db link, when i try to use it i get error message invalid username/password
    here is my set up:
    tnsnames.ora
    --remote db
    DWHTEST=
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dwhtest.be)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = bise1db)
    ---local db
    BISE1DBLOCAL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = mydb.local)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = bise1db)
    i used the following query to create a link:
    logged on in local db as sys as sysdba
    CREATE PUBLIC DATABASE LINK dwhtest
    CONNECT TO CURRENT_USER
    USING 'DWHTEST';
    link gets created;
    the remote db has been cloned, so locally i have the identical db; all users /passwords are the same (was not even changing that, but they got updated with the remote users/passwords)
    i connect to a user in local db, which also exist in remote db:
    when i try to do select from remote db
    select * from all_views@dwhtest
    i receive error message: invalid username/password
    i can create connections to this user both locally and remotely via sql developer using the same username/password, just a different tns name;
    what am i missing that this is not working?
    thanks in advance for any tips
    rgds

    hi
    thank you for your answer;
    what you suggest is fixing the password for the current user; however via this public link i want to connect to 2 different users in a remote db; passwords for these 2 users are different (and i cannot change that, as this is in remote db like that)
    so i dont think i can follow your tip (which password would i be entering)
    as temporary fix i created fixed links for 2 users that i need to connect to in remote db and it works fine;
    however id like to make the global link for a 'current user' work; so that i could use 2 links, not 4 links (in fact i have 2 remote db, qas and prod, and each time 2 users i need to connect to remotely, all from my local dev db);
    thanks
    rgds
    Edited by: UserMB on Aug 17, 2011 1:02 AM

  • Invalid username/password in case of oracle os authentication

    Hi,
    I am trying to connect to database using oracle local os authentication. REMOTE_OS_AUTHENT = false
    I am using oracle 11g.
    here is the code
    I am trying in two ways :-
    1. OracleDataSource
    OracleDataSource ods = new OracleDataSource();
    String url = "jdbc:oracle:oci:@";
    ods.setURL(url);
    ods.setDatabaseName("oradg");
    Connection conn = ods.getConnection();
    In this case it always connects to the default ORACLE_SID which is set in the environment.
    2. Simple JDBC connection
    String url = "jdbc:oracle:oci:@oradg";
    Connection con = Drivermanager.getconnection(url,props);
    in this case it always says "invalid username/password"
    Please help me to resolve the problem.
    Thanks

    user10839503 wrote:
    2 using the oracle account for this is a VERY BAD IDEA
    i have another os user called demo which has the same issue.
    REMOTE_OS_AUTHENT any way i dont want to use.
    3 always connecting to the database server is a VERY BAD IDEA
    i am not very clear on this can u please elaborate it?
    I dont want to use any username and password for os authentication in the code.
    The problem is if ORACLE_SID is set in the environment then code works fine. But I want to set the sid in the code itself.
    Because if i set in the environment then at a time only one sid will be used.
    But why you want to hard code the SID in the first place anywhere? Why not to use the Services ?
    Aman....

Maybe you are looking for