ORA-12154 as user oracle, Pentecost root account, it works very well

Hello

I have a problem with a client installation, if I try to connect to the database. I have the following configuration:

1 database: running on an Ubuntu Jeos VM, Oracle 11 g (11.1.0.6.0 version 64 bit)
2. customer: running on a CentOS 5.2 VM, Oracle 10 g Linux 32-bit Client

I have configured the tnsnames.ora and stored in the directory of $ORACLE_HOME/network/admin. The content of the tnsnames.ora file is the following:
ORCL64 = (Description = (ADDRESS_LIST = (Address = (Protocol = TCP)(host=192.168.12.128) (port = 1521))) (CONNECT_DATA = (SID = ORCL)))

If I try to connect to the database as the user oracle with the following command sqlplus SYS@ORCL64 AS SYSDBA, I will get the ORA-12154 TNS: could not resolve the connect identifier specified error message. If I try the same as the root user, it works fine and I can make the connection. I have the same result if I try the command tnsping ORCL64. As user root the tnsnames adapter can resolve the alias, as the oracle user this appears not possible and I will get the error message: TNS-03505: failed to resolve the name. In both it uses the setting from the file u01/app/oracle/network/admin/sqlnet.ora. The content of the sqlnet.ora file is the following:
NAMES of . DIRECTORY_PATH = (TNSNAMES, EZCONNECT).

Do you have any suggestions how can I solve this problem of having a connection with the oracle user.
Thanks in advance
Sven

user10252169 wrote:
Hello

Thanks for your replies. On the CentOS machine, where the client is installed, there is no directory $ORACLE_HOME/bin/oracle and $ORACLE_HOME/bin/lsnrctl. The output of the $ORACLE_HOME/network/admin / * ora is:

-rw - r - 1 oracle oinstall 171 28. Apr 21:25 /u01/app/oracle/network/admin/sqlnet.ora
WX - 1 root root 118 5. May 11:33 /u01/app/oracle/network/admin/tnsnames.ora

The 'client' reads the tnsnames.ora to determine where the database. Looking at t he above, you have a configuration in which the user name only client able to read the tnsnames.ora is the root user. Which means that you have run the netca or netmgr as root.

Change the tnsnames.ora to provide the appropriate, perms and then try again.

Tags: Database

Similar Questions

  • ORA-00034: cannot run sessionbut of PL/SQL, it works very well in plsql

    SQL> select UTL_URL.unescape ('http://search.music.google.co.jp/musicsearch?cc=d1&cp=%A5%DE%A5%B8%A4%C7%B4%B6%BC%D5', 'UTF-8') from dual;
    select UTL_URL.unescape ('http://search.music.google.co.jp/musicsearch?cc=d1&cp=%A5%DE%A5%B8%A4%C7%B4%B6%BC%D5', 'UTF-8') from dual
           *
    ERROR at line 1:
    ORA-00034: cannot  in current PL/SQL session
    ORA-06512: at "SYS.UTL_URL", line 28
    ORA-06512: at "SYS.UTL_URL", line 170
    ORA-06512: at line 1
    but it works very well in plsql/block
      1  declare
      2  v varchar2(500);
      3  begin
      4  v :=UTL_URL.ESCAPE ( 'http://search.music.google.co.jp/musicsearch?cc=d1&cp=%A5%DE%A5%B8%A4%C7%B4%B6%BC%D5', FALSE, 'UTF-8') ;
      5  dbms_output.put_line(v);
      6  v :=UTL_URL.unESCAPE (v, 'UTF-8') ;
      7  dbms_output.put_line(v);
      8* end;
    SQL> /
    http://search.music.google.co.jp/musicsearch?cc=d1&cp=%25A5%25DE%25A5%25B8%25A4%25C7%25B4%25B6%25BC%25D5
    http://search.music.google.co.jp/musicsearch?cc=d1&cp=%A5%DE%A5%B8%A4%C7%B4%B6%BC%D5
    
    PL/SQL procedure successfully completed.
    Please help solve this error

    I need to do this in sql without pl/sql

    Thank you

    Published by: ivw on Nov 21, 2009 05:06

    Published by: ivw on Nov 21, 2009 05:09

    You try to call a function in SQL that violates the rules of "how functions should behave when she is called in SQL.

    In other words, someone seems to have coded UTL_UTL. Escape() or UTL_UTL. UNESCAPE() with a COMMIT or ROLLBACK in the code. Which is not allowed in the functions that are called in a SQL statement.

    I suggest that you raise a Service request to get it looked at properly.

  • AOL will not sign some user accounts. But works very well for the Administrators account.

    AOL 9.6 works very well since XP account administrators but... any other account on the PC when AOL sign on it immeadiately can sign with "AOL had a problem and had to sign. Any ideas? AOL gave a bad scripted reload all the response of the AOL software.

    Thank you

    Hi Splinter1,
     
    Try the steps listed in the article below and check if it helps fix the problem:
    If this does not help, contact AOL support better.
  • Select display on public dblink fails with ORA-01031 run select directly throw dblink public works very well

    Hi @ all,

    A company CAR 11.2.0.3 I'm tring to select * on a view with another user (not the owner of the view), this view select another scope of view a dblink (don't ask me why please ) and mount an ORA-01031... If I try to run the select used in the view with this different user all works very well... I try to explain better:

    Point of VIEW is USERA. BIRD using a dblink public:

    CREATE OR REPLACE FORCE VIEW "USERA"."MYVIEW" ("A", "B", "C") AS
    SELECT A,B,C FROM ANOTHERVIEW@REMOTEDB;
    
    

    B user trying to pick at this point of view: (USERB is a logon trigger that change current_schema to USERA) so, make USERB :

    select * from MYVIEW;
    
    

    and get an ORA-01031.

    If the user USERB perform only:

    SELECT A,B,C FROM ANOTHERVIEW@REMOTEDB;
    
    

    everything works fine.

    Dblink is created in public

    This problem does not occur on other 10 public database with similar assumptions link...

    Can you help me o redirect any link to metalink or something else?

    Thank you!

    IAIO wrote:

    USERB is a logon trigger that change current_schema to USERA

    Current schema to USERA definition allows user USERB reference user USERA belonging to objects without prefixing them with USERA. Then, when USERB emits:

    Select * from BIRD;

    Oracle translates him:

    Select * from USERA. BIRD;

    but the user session is always USERB. As a result, Oracle checks to see if USERB has the right to SELECT on USERA. BIRD. And based on ORA - 01031 USERB didn't. Needs will USE to grant select on BIRD to USERB.

    SY.

  • 12 Firefox on OS Lion does not obtain the crash report on a second account on the past. On the main account (admin) it works very well and also on a third test account.

    12 Firefox does not get beyond the crash report. This is a second account (standard). However, it works very well on a third party, as well as on the main one admin account. I reinstalled Firefox, disc repaired permissions and so on, but nothing helped. For the second account .plist file could be damaged? I can't remove it because of permissions so cannot test this. Please notify.

    Try to repair disk permissions:

  • When I connect my hotmail account, I can't open any folder, the Inbox, the new message,... everything seems normal, but when I click on something, it isn't responding.and it doesn't see the error.it works very well in internet explore.

    When I connect my hotmail account, I can't open any folder, the Inbox, the new message...
    everything seems normal, but when I click on something, it isn't responding.it works very well in internet explore.

    I think the next thing to test would that interfere with Add-ons. Disables the Firefox Add-on - Add-ons that only list compatibility with Firefox 5, but some add-ons could cause problems.

    To test, the simplest method is to restart Firefox Safe mode.

    First of all, I recommend you backup your Firefox settings in case something goes wrong. See your backup information. (You can copy your profile folder Firefox together somewhere outside the Mozilla folder).

    Then, try help > restart with disabled modules > continue in Mode safe (do not check the boxes). This article gives more information on the options and features of Safe Mode: Safe Mode.

    What is fix? If so, you may have to disable some add-ons.

  • users cannot save .pdf, .doc files using "Save target as" in google search results. Can someone help me, I couldn't have known that the same works very well on some computers.

    I am the Director of technical support for more than 1000 computers. Recently in some computers (windows based) users cannot save .pdf, .doc files using "Save target as" in google search results. Can someone help me, I couldn't have known that the same works very well on some computers.

    Hi MASPAdministrator,

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet Windows XP forum.

    http://social.technet.Microsoft.com/forums/en-us/itproxpsp/threads

  • the root account not working for vSphere Client 5.5, for SSH works fine

    Hey.

    I got this:

    I can connect to vCenter 5.5 by SSH and the root user and password works fine

    I can connect to vCenter 5.5 by vSphere Client and use domain user and everything works fine

    I cant't connection 5.5 by user of vSphere vCenter Client and use of root and the password. I have information on

    "Cannot complete the connection because username or password incorect.

    IM shure I use the right password for root.

    A suggestion?

    Screenshot_6.png

    Ok. Thank you community vExpert and Lukasz of my team, we found easy reason perhaps, but not at the first glance for me

    We had the installer by default "Source of identity" for Active Directory then when I used only root for connection I got the error with wrong password.

    In this possible case is just to connect to vcenter using root@localos credintials.

    But in addition we sam of similar mistakes inside the SSO connects:

    Location of the vCenter Single Sign-On log files for vCenter Server 5.1 and 5.5 (2033430) | VMware KB

    /var/log/VMware/SSO/VMware-STS-idmd.log

    2016 06-21 13:57:31, ERROR 142 [IdentityManager] could not authenticate [root] main tenant [vsphere.local]

    javax.security.auth.login.LoginException: failed connection

    at com.vmware.identity.idm.server.provider.ldap.LdapWithAdMappingsProvider.authenticate(LdapWithAdMappingsProvider.java:327)

    at com.vmware.identity.idm.server.IdentityManager.authenticate(IdentityManager.java:2412)

    at sun.reflect.GeneratedMethodAccessor24.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

    at java.lang.reflect.Method.invoke (unknown Source)

    at sun.rmi.server.UnicastServerRef.dispatch (unknown Source)

    to sun.rmi.transport.Transport$ 1.run (unknown Source)

    to sun.rmi.transport.Transport$ 1.run (unknown Source)

    at java.security.AccessController.doPrivileged (Native Method)

    at sun.rmi.transport.Transport.serviceCall (unknown Source)

    at sun.rmi.transport.tcp.TCPTransport.handleMessages (unknown Source)

    to sun.rmi.transport.tcp.TCPTransport$ ConnectionHandler.run0 (unknown Source)

    to sun.rmi.transport.tcp.TCPTransport$ ConnectionHandler.run (unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    at java.lang.Thread.run (unknown Source)

    Caused by: com.vmware.identity.idm.InvalidPrincipalException: could not find the main id: {name: root domain: OurAdDomain.local}

    at com.vmware.identity.idm.server.provider.BaseLdapProvider.findAccountLdapEntry(BaseLdapProvider.java:543)

    at com.vmware.identity.idm.server.provider.ldap.LdapWithAdMappingsProvider.getUserDN(LdapWithAdMappingsProvider.java:1715)

    at com.vmware.identity.idm.server.provider.ldap.LdapWithAdMappingsProvider.authenticate(LdapWithAdMappingsProvider.java:323)

    ... 15 more

    2016-06-21 13:57:31, 144 ERROR [IdentityManager] failed to main checkUserAccountFlags [root] for tenant [vsphere.local]

    "2016-06-21 13:57:31, 144 exception ERROR [ServerUtils] ' com.vmware.identity.idm.IDMLoginException: the connection has failed.

    com.vmware.identity.idm.IDMLoginException: failed connection

    at com.vmware.identity.idm.server.IdentityManager.authenticate(IdentityManager.java:2481)

    at sun.reflect.GeneratedMethodAccessor24.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)

    at java.lang.reflect.Method.invoke (unknown Source)

    at sun.rmi.server.UnicastServerRef.dispatch (unknown Source)

    to sun.rmi.transport.Transport$ 1.run (unknown Source)

    to sun.rmi.transport.Transport$ 1.run (unknown Source)

    at java.security.AccessController.doPrivileged (Native Method)

    at sun.rmi.transport.Transport.serviceCall (unknown Source)

    at sun.rmi.transport.tcp.TCPTransport.handleMessages (unknown Source)

    to sun.rmi.transport.tcp.TCPTransport$ ConnectionHandler.run0 (unknown Source)

    to sun.rmi.transport.tcp.TCPTransport$ ConnectionHandler.run (unknown Source)

    at java.util.concurrent.ThreadPoolExecutor.runWorker (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    at java.lang.Thread.run (unknown Source)

    2016-06-21 13:57:31, 144 INFO [IdentityManager] authentication failed for user [root] the tenant [vsphere.local] in milliseconds [4]

    When I used the credentials with appropriate domain name:

    root@localos we received newspapers below:

    2016-06-21 14:11:58, 971 INFO [LinuxNativeAuthDbAdapter] [root] user authentication

    2016-06-21 14:11:58, 974 INFO [IdentityManager] authentication successful for the user [root@localos] [vsphere.local] tenant in milliseconds [3]

    2016-06-21 14:11:58, 984 INFO [LinuxNativeAuthDbAdapter] to get local groups for the [root] user. Recursive? [Yes]

    When I temporary switch the source of identity - "localos" and use the root account to log logs below, we received and I connected without problem:

    2016-06-21 14:14:37, 545 INFO [LinuxNativeAuthDbAdapter] [root] user authentication

    2016-06-21 14:14:37, 549 INFO [IdentityManager] authentication successful for the user [root] the tenant [vsphere.local] in milliseconds [4]

    2016-06-21 14:14:37, 564 INFO [LinuxNativeAuthDbAdapter] to get local groups for the [root] user. Recursive? [Yes]

    Now, for me, more clearly

    Once again thank you

    Sebastian

  • Strange user Oracle under Windows account

    Hi all
    I came across this strange situation: I can log on locally to the oracle database with any username?
    Sql> disc
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Sql> conn indonesia/indonesia as sysdba
    Connected.
    Sql> conn batak/batak as sysdba;
    Connected.
    Sql> conn / as sysdba
    Connected.
    Sql> conn jakarta/jak as sysdba
    Connected.
    Sql> conn as sysdba
    Enter user-name: jakarta
    Enter password:
    Connected.
    My conclusion humble , _ I could connect to oracle as a sysdba with any username as long as the password is the user name( the username and the password is the same ).
    Previously, I suggested that Windows creates these users in the ora_dba group, but when I checked there is no such windows users. The only user with ora_dba is administrator.

    My computer is a Latitude E6400laptop *.
    OS Name:                   Microsoft Windows XP Professional
    OS Version:                5.1.2600 Service Pack 3 Build 2600
    OS Manufacturer:           Microsoft Corporation
    OS Configuration:          Standalone Workstation
    OS Build Type:             Multiprocessor Free
    ..
    ..
    System Model:              Latitude E6400
    System type:               X86-based PC
    FYI, I found the same with different situation for laptop (with the same version of oracle).

    Can someone provide explanations? What kind of bugs?

    How can I disable this feature/bug?


    Kind regards

    No, this is not a bug but its expected behavior. You use the authentication of the BONE , and this means, you don't need to use the password for the Sys user login.

    I suggested that Windows creates these users in the ora_dba group, but when I checked there is no such windows users. The only user with ora_dba is administrator.

    It's a hypothesis very badly done. The group is a group o/s and if the account of the o/s which is administrator, in your case is a part of this group, Oracle would not use the password.

    Please spend some time reading the literature thereon,
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e17120/dba006.htm#i1006677

    HTH
    Aman...

  • Apex 5 on PDB not work. works very well on the root - ERR-7620 could determine no workspace for the application (4500)

    Hi all

    I recently installed Oracle 12 c and Apex 5 on a new server.

    My apex 5 installation went well. I can access it without problem at the root on its default port 8080.

    Later, I created a new pdb file (cloned from pdborcl) and created a new schema.

    as sysdba, I started a new instance of the Apex on port 8888, but when I try to access it through the http://IPAddress:8888 / apex / or apex / http://IPAddress:8888 / apex_admin I get an error (see pictures below)

    Can someone tell me please in the right direction.

    Should I do an install fresh apex 5 on the PDB? I thought that if I installed as sysdba on the CBD, the pluggable DB would inherit apex 5. Help, please

    ERR-7620 could determine no workspace for the application (4500)

    ORA-01403: no data found


    (DOES NOT NOT ON PDB)

    1.PNG


    (WORKING ON ROOT)

    2.PNG



    Hi John,.

    What you said is exactly the problem you will encounter if patch 20618595 of the database is not applied before the APEX upgrade to 5.0. In addition to the opatch apply the approach, you also run $ORACLE_HOME/OPatch/datapatch? At run time, you guarantee that all-ins databases have been opened after the start of the database to the top by issuing alter database connectable to all open?

    Finally, you have indicated that you have installed it on a new server. Is your main interest just to have a new 12 c CBD with APEX 5.0 in it? If Yes, you can do the following to avoid the problem you are experiencing currently.

    (1) create a new 12 c CBD

    (2) connect SYS as SYSDBA to CBD$ ROOT and launch a 4.2.5 or newer version of apxremov_con.sql. If the database that you created in step 1 is 12.1.0.2, you can just use $ORACLE_HOME/apex/apxremov_con.sql

    (3) connect SYS as SYSDBA to CBD$ ROOT and run apexins.sql from the source 5.0 specifying positional parameters, as you normally would

    Kind regards

    Jason

  • 10.6.8 running Firefox Mac 11 accounts works very well, while on the other FF seems to run but do not open a window.

    On an iMac using 10.6.8 OS and Firefox 11, an account turns FF fine, but another account on the same machine does not work. FF appears to start... the control bar appears at the top of the screen and a light under the icon... but no window opens. By clicking on a link in an e-mail brings the same result.

    OOOOPS! Standing in the shower this morning, I realized what the problem was. A nephew of visit showed my wife and I have a YouTube video and it shows on the big screen by dragging the FF window on television while connected to my wife's account. When we finished watching the video of the TV, we have moved from input to TV and never drag the window to the computer screen. Happy to announce everything now works as it should.

  • Dreamweaver CS6 error "out of memory" as a standard domain user; works very well as an admin level user

    I have a recent issue came: a user of Dreamweaver CS6 started making one error output memory since it uses the app when I login as local administrator-level user, there is no problem. It's a Windows 7 64 bit client domain user, so that don't have local administrator rights.

    someone has encountered this please.

    Danny Jacobs

    UBM

    London office

    This page may help:

    http://support.Microsoft.com/kb/947246

    I spent some time on the Microsoft site to find the exact error you see. W7 is known to her permissions problems.

    If you don't have full rights to the machine, you'll want to show the problem with your guy/gal TI.

  • Player 11 locks up for a single user, but the other user on the PC 'EVEN' works very well!

    Hello Adobe and group. I tried all of the recommended patches that I can find. Windows 7 Home Premium perfectly up-to-date. Uninstall/reinstall adobe, accept the eula, remove the hard drive and run anti-virus/malware/spyware/kasperskyrootkit programs on my test PC. No solution. VERY strange that one user can be logged on to the PC and the drive works fine weather the other user is logged in or not. Another user opens 11 reader and it crashes instantly and permanently until the end of the task by the Manager tasks.

    Of all my reading, it looks like a recurring problem. Is there a real solution for this? Please share if so!

    Try Acrobat/Reader software cleaner then re - install:

    http://labs.Adobe.com/downloads/acrobatcleaner.html

  • iOS app works very well upstream, but after downloading through developer account, it is said that it can not connect.

    I get the splash screen, then a loading animation, and then it throws an error saying that it cannot connect. Any ideas?

    You publish the collections and objects?

  • Unable to connect, ORA-12154, the installation routine to find ODBC Microsoft errors

    Hi all

    I have a 64-bit Windows 7 Enterprise SP1 system and I wanted to be able to connect to an oracle database server. However, I am facing a problem with the ODBC configuration.

    I currently installed both below in... product\11.2.0\client_1 folder:
    1 oracle Database 11 g Release 2 (11.2.0.1.0) Client for Microsoft Windows (x 64) - http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
    2 64 - bit components (ODAC) data access Oracle - http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html

    I launched the ODBC data sources administrator and added a user DSN but gave rise to two errors:
    1. the Setup for the Microsoft ODBC driver ODBC routines oracle is not found. Please you reintall the pilot.
    2. the specified DSN contains a mismatch of architecture between the driver and the application.

    In addition to that, if I go to the system DSN tab and tried to test the connection it gives me an error:
    1. cannot connect SQLState = 08004 [Oracle] [ODBC] [Ora] ORA-12154: TNS: can not solved the specified identifier.

    Anyone can guide me please thanks to this? Thanks in advance!

    Published by: VTech on February 26, 2013 14:13

    VTech wrote:
    Hi all

    I have a 64-bit Windows 7 Enterprise SP1 system and I wanted to be able to connect to an oracle database server. However, I am facing a problem with the ODBC configuration.

    I currently installed both below in... product\11.2.0\client_1 folder:
    1 oracle Database 11 g Release 2 (11.2.0.1.0) Client for Microsoft Windows (x 64) - http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html
    2 64 - bit components (ODAC) Oracle data access - http://www.oracle.com/technetwork/database/windows/downloads/index-090165.html

    It is enough that one of them (the other should be enough).

    I launched the ODBC data sources administrator and added a user DSN but gave rise to two errors:
    1. the Setup for the Microsoft ODBC driver ODBC routines oracle is not found. Please you reintall the pilot.

    "Microsoft ODBC for Oracle" is a different provider than 'Oracle ODBC'. Make sure that you do not use Microsoft one.

    2. the specified DSN contains a mismatch of architecture between the driver and the application.

    This can happen if you mix 32-bit and 64-bit. There are two ODBC Control Panel in Windows 7:
    -64-bit, one is that of the Panel
    -the 32 bit one is c:\windows\syswow64\odbcad32.exe

    Because you use an Oracle 64-bit driver, you must use the 64-bit ODBC Administrator and 64-bit applications. If you try to use this ODBC connection with a 32-bit application, you will need to use the 32-bit ODBC (and the driver Oracle 32-bit).

    In addition to that, if I go to the system DSN tab and tried to test the connection it gives me an error:
    1. cannot connect SQLState = 08004 [Oracle] [ODBC] [Ora] ORA-12154: TNS: can not solved the specified identifier.

    Well it actually means that it loads correctly, Oracle is something. You must add an entry for the server you want to connect in tnsnames.ora, located in the folder \network\admin inside your Oracle client installation. Because it looks like someone else set up the server that you want to connect, your DBA should be able to provide the information that is written to the file.

Maybe you are looking for