Impossible to connect to my database using net service name

Hello all;

I'm trying to connect my database using net service_name, but I get the error message.
I have an entry in tnsnames.ora and listener.ora.
Please, help me to crack this error.



SQL > select name from v$ database;

NAME

ORCLTEST


SQL > grant connect, resource to u1 identified by u1;
Grant succeeded.

SQL > grant sysdba to u1;
Grant succeeded.

SQL > show the passage of parameter;

VALUE OF TYPE NAME
Remote_login_passwordfile string EXCLUSIVE

SQL > shutdown immediate;
The database is closed.
The database is dismounted.
ORACLE instance stops.


The DBS directory:

[oracle@linuxserver dbs] $ orapwd file = orapworcltest password = entries asdf1234 = 3


export ORACLE_SID = orcltest
[oracle@linuxserver ~] $ sqlplus/nolog

SQL * more: Release 10.2.0.1.0 - Production on Sat Mar 9 19:24:22 2013

Copyright (c) 1982, 2005, Oracle. All rights reserved.

ERROR when you try to connect

SQL > conn u1/u1@ORCLMYTEST
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux error: 2: no such file or directory


SQL > conn u1/asdf1234@ORCLMYTEST
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux error: 2: no such file or directory


Thanks in advance...

969352 wrote:

But you should go and get some classes on Oracle OR understand the Oracle documentation otherwise, you won't learn anything ever.

-Yes. I learn and I work very hard. Few things is not documented ex (even this thread).

In any case thanks...

IMO, it's a security risk to allow the connection AS SYSDBA through the network & I never turn on any DB.

Tags: Database

Similar Questions

  • Unable to connect local database using net service name

    Hello all;


    FYI: This question has been posted in high availability. Now, it has been deleted from there.


    I'm trying to connect my local database using authentication remote.

    but make a mistake. Client & server are on the same server.


    SQL > conn u1/u1@primdb

    ERROR: ORA-12545: Connect failed because target host or object does not exist


    SQL > conn / as sysdba

    Connected.


    SQL > show parameter db_name;

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    db_name chain primary


    SQL > show parameter service_name.

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    service name string mydb


    SQL > show parameter db_domain;

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    db_domain string primary.com


    SQL > show parameter global_name;

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    global_names boolean FALSE


    SQL > select * from global_name;

    GLOBAL_NAME

    --------------------------------------------------------------------------------

    PRIMARY

    [oracle@localhost admin] $ lsnrctl start

    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on January 18, 2014 16:32:08

    Copyright (c) 1991, 2005, Oracle.  All rights reserved.

    From /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: Please wait...

    TNSLSNR for Linux: Version 10.2.0.1.0 - Production

    System settings file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log

    Error listening on: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=oel5.linuxserver) (PORT = 1521)))

    TNS-12545: Connect failed because target host or object does not exist

    AMT-12560: TNS:protocol adapter error

    TNS-00515: Connect failed because target host or object does not exist

    Listening port could start. See the above error messages...


    -----------------------------------------------------------------------------------


    My listener.ora file content:

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (SID_NAME = primary)

    (ORACLE_HOME = u01/app/oracle/product/10.2.0/db_1)

    (GLOBAL_DBNAME = mydb.primary.com)

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = oel5.linuxserver) (PORT = 1521))

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))

    -----------------------------------------------------------------

    My tnsnames.ora content

    primdb =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP)(HOST= oel5.linuxserver) (PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = mydb)

    )

    )

    --------------------------------

    $ tnsping primdb


    AMT Ping utility for Linux: Version 10.2.0.1.0 - Production on January 18, 2014 16:40:55

    Copyright (c) 1997, 2005, Oracle.  All rights reserved.

    Use settings files:

    TNSNAMES adapter used to resolve the alias

    Try to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = oel5.linuxserver)(PORT=1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mydb)))

    TNS-12545: Connect failed because target host or object does not exist

    Thanks in advance...


    SERVICE_NAME =? in tnsnames.ora file should MATCH what is reported by the listener EXACTLY (like one from below)

    > Service 'mydb.primary.com' has 1 instance (s).

    Instance of 'primary', State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0 status: ready

    LOCAL SERVER

    > Service 'primary.primary.com' has 1 instance (s).

    Instance of 'primary', State LOAN, has 1 operation for this service...

    Managers:

    "DEDICATED" set up: 0 denied: 0 status: ready

    LOCAL SERVER

    > Service 'primary_XPT.primary.com' has 1 instance (s).

  • Connectivity of user using net service name

    Hi all;


    The service_name database level value is different and of course vary in the tnsnames.ora file.

    So how oracle allows user connectivity using tns alias name?


    SQL > conn scott/tiger@CRMS

    Connected.


    SQL > show parameter service_name.


    VALUE OF TYPE NAME

    ----------------- ----------- ------------------------------

    service name string crms.server1.com


    $ vi tansnames.ora


    tnsnames.ora # Network Configuration file: /u02/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora

    # Generated by Oracle configuration tools.

    CRMS =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.130)(PORT = 1521))

    )

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = GCD)

    )

    )

    DB version is: 11.2.0.1 on Linux


    Thank you

    I never statement "changes to the system registry.

    This is not necessary: when you use the default settings for the listener (as in your case), the instance automatically registers with the listener.

    http://docs.Oracle.com/CD/E11882_01/network.112/e41945/listenercfg.htm#NETAG298

  • RCU error: unable to connect to the database using the contact information provided

    Hello

    I am not able to connect to the database using the remote control 11.1.1.10.1 to create patterns. I ran the UCR even a week ago and I managed to connect. My database and listener are up and running and the host and the credentials are correct. I don't know where is the problem. Any help will be appreciated. Attaching the screenshot for reference.

    rcu.PNG

    Concerning

    Oumaima

    Hi Handal

    Thanks for the reply. Looks like someone had blocked the firewall settings, so I was unable to connect to the database using the port.

    Thank you

    Oumaima

  • Is it possible that muse adobe to have a Back-End that connects to a database using MySQL, SQL, Access etc...

    Is it possible that muse adobe to have a Back-End that connects to a database using MySQL, SQL, Access etc...

    Nothing to do with the Muse at all. You have things backwards. If you use a dynamic interface, you work in the API hooks and predefined functions and that he don't just slap on an arbitrary HTML façade. It is simply not how it works.

    Mylenium

  • not able to connect to the database using the oracle instant client

    Hello

    I am not able to connect to the database using the instant oracle from my local PC client. They use to connect to the database files and sqlnet.ora files LDAP.ora. If I want to test the connection, I found this executable tns wasn't there, so not able to tnsping. So I'm not able to solve this problem.

    Please let me know if a solution for everything

    Client Oracle: oracle 10.2bFAT client 32-bit

    Platform: windows 7 64-bit

    Thank you
    Veera

    There is little that tnsping can do sqlplus can't.

    Instead of
    tnsping mydb.myorg.com
    Try
    sqlplus-s-L /@mydb.myorg.com
    or
    sqlplus-s-L user/[email protected]

    If you get
    ORA-12154: TNS: could not resolve the connect identifier specified
    you know that the customer could not resolve 'mydb.myorg.com '.

    If you get
    ORA-12541: TNS:no listener
    then "mydb.myorg.com" could be resolved, but there is no listener it running.

    If you get
    ORA-12514: TNS:listener is not currently of service requested in connect descriptor
    then "mydb.myorg.com" could be solved, the listener is in place, and the database is out of service.

    If you get
    ORA-01017: name of user and password invalid. connection refused
    you know that 'mydb.myorg.com' has been successfully resolved, and the database is running.

    If you want more details, such as how and what "mydb.myorg.com" is resolved, turn the tracking by adding the following to "sqlnet.ora:
    TRACE_LEVEL_CLIENT = ADMIN
    TRACE_DIRECTORY_CLIENT = C:\TEMP (a writable directory)

    Then you will find lines like this in the trace file:

    -THE INFORMATION SOURCE PARAMETER FOLLOWS-
    Attempt to load system pfile source C:\oracle\network\admin\sqlnet.ora
    Source of the setting successfully loaded

    Attempt to load the local pfile source C:\Dokumente und Einstellungen\lanadvall\sqlnet.ora
    The parameter source has not been loaded.

    This shows you which configuration files are read, followed by the settings real read.

    nnfgrne: will read if path adapters
    nnfgrne: switching adapter LDAP

    He's now looking for LDAP name resolution.

    nnfloidinfocache: Info: insert the value DIRECTORY_SERVSSL = oid.host.myorg.com:389 at index 0 in NLPA_CACHE

    These are LDAP servers, he is trying.

    nnflilc: conn sync opening of oid.host.myorg.com:389

    nnflfdn: turning simplified mydb.myorg.com name to a unique name.
    nnflfdn: using the administrative context: dc = prod
    nnflfdn: the domain name resulting is cn = mydb, cn = OracleContext, dc is myorg, dc = com

    nnflrne1: runs the directory for dn: cn = mydb, cn = OracleContext, dc is myorg, dc = com
    nnflqbf: search: Base: cn = mydb, cn = OracleContext, dc is myorg, dc = com, range: 0, filter: (objectclass = *)

    nnfgrne: query fails, the leap to the next map

    Did not work. Try the other adapters:

    nnfgrne: switching adapter EZCONNECT

    snlinGetAddrInfo: name resolution failed for test64.test

    No luck.

    If the resolution is approved, it will look like this:

    nnfloidinfocache: Info: insert the value DIRECTORY_SERVERS = oid.host.myorg.com:389 at index 0 in NLPA_CACHE

    nnflilc: conn sync opening of oid.host.myorg.com:389

    nnflfdn: turning simplified mydb.myorg.com name to a unique name.
    nnflfdn: using the administrative context: dc = prod
    nnflfdn: the domain name resulting is cn = mydb, cn = OracleContext, dc is myorg, dc = com

    nnflrne1: runs the directory for dn: cn = mydb, cn = OracleContext, dc is myorg, dc = com
    nnflqbf: search: Base: cn = mydb, cn = OracleContext, dc is myorg, dc = com, range: 0, filter: (objectclass = *)

    niotns: the call to address: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=dbserver.host.myorg.com) (PORT = 1521)) (CONNECT_DATA = (SID = DBNAME) (CID = (PROGRAM = C:\Oracle\ora1020\bin\sqlplus.exe)(HOST=pc247596)(USER=lanadvall)))

    Yours,
    Laurenz Albe

  • Not able to connect to the database using OS othenticated user.

    Hi team,

    We use HP UX servers, recently we pass the passive node to active (cluster OS) after that we are not able to connect to the database using OS authenticated the user, but I am able to conenct by user oracle sunig... !

    Please suggest me.

    Thank you
    Maurel.

    Please copy - paste the screen indicating the connection attempt with the authentication of the BONE and the error message.

  • ServiceAliasException: Could not enum Net service names: TNS-04404: no error what do I do?

    I am a novice so please don't ask me for this help.

    I have listener.ora and tnsnames.ora

    When I tnsping ORADB_18 which is the connection string in tnsnames.ora file, it says:

    C:\users\administrator > tnsping ORADB_18

    AMT Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production May 26, 2015 00:04:22

    Copyright (c) 1997, 2010, Oracle.  All rights reserved.

    Use settings files:

    F:\app\Ashraful\product\11.2.0\dbhome_1\network\admin\sqlnet.ora

    AMT-03505: failed to resolve the name

    then I tried to create the sqlnet.ora by netca < configuration of local network service name. She translates by follows it:

    C:\users\administrator > netca

    Oracle Net Services Configuration:

    ServiceAliasException: Could not enum Net service names: TNS-04404: no error

    caused by: oracle.net.config.ConfigException: 04414-TNS: file error

    caused by: TNS-04605: invalid syntax error: unexpected or LITERAL char "ORADB" before or at the ORADB =)

    ServiceAliasException: Could not enum Net service names: TNS-04404: no error

    caused by: oracle.net.config.ConfigException: 04414-TNS: file error

    caused by: TNS-04605: invalid syntax error: unexpected or LITERAL char "ORADB" before or at the ORADB =)

    Oracle Net Services configuration that is terminated by the user.  The exit is - 1 code

    Content of the Listener.ora:

    listener.ora # Network Configuration file: F:\app\Ashraful\product\11.2.0\dbhome_1\network\admin\listener.ora

    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =

    (SID_LIST =

    (SID_DESC =

    (GLOBAL_DBNAME = ORADB)

    (ORACLE_HOME = F:\app\Ashraful\product\11.2.0\dbhome_1)

    (SID_NAME = ORADB)

    )

    (SID_DESC =

    (SID_NAME = CLRExtProc)

    (ORACLE_HOME = F:\app\Ashraful\product\11.2.0\dbhome_1)

    (= Extproc PROGRAM)

    (ENVS = "EXTPROC_DLLS=ONLY:F:\app\Ashraful\product\11.2.0\dbhome_1\bin\oraclr11.dll")

    )

    )

    LISTENER =

    (DESCRIPTION_LIST =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = *. *. *. *)(PORT = 1521))

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    )

    )

    ADR_BASE_LISTENER = F:\app\Ashraful

    Table of contents of tnsnames.ora:

    tnsnames.ora # Network Configuration file: F:\app\Ashraful\product\11.2.0\dbhome_1\network\admin\tnsnames.ora

    # Generated by Oracle configuration tools.

    ORACLR_CONNECTION_DATA =

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))

    )

    (CONNECT_DATA =

    (SID = CLRExtProc)

    (PRESENTATION = RO)

    )

    )

    ORADB_18 =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP) (HOST = 10.11.201.18)(PORT = 1521))

    (CONNECT_DATA =

    (SERVER = dedicated)

    (SERVICE_NAME = ORADB)

    )

    )

    I also put my TNS_ADMIN variable in the system. TNS_ADMIN = F:\app\Ashraful\product\11.2.0\dbhome_1\NETWORK\ADMIN

    Listener is towards the top and ok.

    I can connect successfully:

    SQL > conn hr / *.

    Connected.

    but this is impossible:

    SQL > conn hr/***@ORADB_18

    ERROR:

    ORA-12154: TNS: could not resolve the connect identifier specified

    remove the left front spaces of ORADB_18 =

    as I know that this is not allowed

    concerning

    ANR

  • Is there a simple example, I can see how to connect to a database using actionscript and Flash 8? (not with components)

    I've looked everywhere for a simple example "hello world", on how to connect to a database, pass a parameter and returns a dataset object. I'd like one that uses no components. (Actionscript only). Who uses ColdFusion 7.x and Flash 8. Can someone point me to one?

    Thanks Craig, I noticed the example, but it was meant for Flash MX, and Flash 8 documentation, the NetServices is now obsolete. Anyway, I posted my question on another site and some provided me with a simple example. Here is the url if anyone is interested... sample

  • Connect to the database using the BEAK

    Hello

    I get the following error message when you use the function OCILogon() calls
    i.e.
    = OCILogon stat (p_env, p_err, & p_svcCtx, (const OraText *) username, (ub4) 3,)
    (Const OraText *) password, (ub4) 3,.
    (const OraText *) ('smad', (ub4) 4);

    ORA-0002: Message not found 2; product = RDBMS. facility = ORA

    I use the Oracle 11 GR 1 material on SLES 10 SP2 on the 64-bit computer.

    I connect to a database and a default host. Do I need to use OCIServerAttach()? Help, please

    THX

    Message not found error is usually incorrect Oracle home settings. Have you checked this already?

  • Connect to the database using oracle forms

    Hello experts,

    I have installed on my computer, Oracle Developer Suite 10 g (10.1.2.0.2) (including the forms and Designer) and after that I installed Oracle Database 11 g Express Edition (11.2) Beta.
    both facilities are on the same (local) computer.
    When I chose to connect to the database, he wonder about the data connection to the database:
    username, password and database.
    I'm sure that the user name and password are correct, because I have no problem to connect directly to the database (via sql * more).
    could you please tell me what I should write in the field database? I trid XE but it dose not help.
    Can I need to make some changes manully so that it works?
    Please note that the operating system is Windows XP service pack 3.

    Thank you for your help.

    Published by: user1818173 on 28/08/2011 01:43

    Hello
    Have you changed the TNSNAMES file. File of the ORA for DS? You must add the TNS for DS TNSNAMES. ORA file.
    Go to $DB_Default_Home$ \netword\admin and open the TNSNAMES file. ORA file in Notepad. Copy the entry tns where you connect from SQL * more.
    Go to $DS_Default_Home$ \netword\admin and open the TNSNAMES file. ORA file in Notepad. Paste the tns entry that you copied.
    Now try to connect generator of form.
    Kind regards
    Qasim Jules

  • problem connecting to the database using dbclient

    Can someone help to solve the following question

    The following error occurred when connecting to the database when connecting dbclient to the database on linux from windows
    . TNS dbclient names has been configured with the SID and IP address of the machine from database

    ERROR:
    ORA-12560: TNS:protocol adapter error

    Could you share your tnsnames.ora file

    And refer to this topic

    http://forums.Oracle.com/forums/thread.jspa?MessageID=9142058�

  • Link to database using a different name

    We moved four instances oracle from one server to another. Two of these Oracle1 and Oracle2 oracle instances had a link established between them.

    When we moved changed them the host name. We have published all the configuration files and everything works fine.

    However, the link was not working so we dropped it and try to recreate it. We dropped without a lot of research and hit an obstacle.

    The link is Oracle2 of Oracle1. The local name on Oracle1 (link) is called RemoteDB. It must be different. Currently works in our prod environment and the names are different, so we know it works, we just don't know how. The DBA who put in place is no longer with us.

    Here's the SQL link:

    CREATE DATABASE LINK RemoteDB CONNECT TO RemoteUser IDENTIFIED BY RemotePassword USING 'Oracle2';
    

    When a desired query:

    SELECT * FROM DUAL@RemoteDB;
    

    You get this error message:

    Link  : "RemoteDB"  
    Error : ORA-02085: database link RemoteDB connects to Oracle2
    

    We know that it works because it works in production, but may not understand the appropriate configuration settings or Create Database link syntax to reveal the name of link differs from the SID or Service name.

    Disabling global_names is everywhere on the web, but does not feel good solution because it is not currently how our environments are configured.

    No indication as to how this configuration or syntax works would be much appreciated.

    Thank you

    Shawn

    If it turns out that in Oracle2, the global_names is false in our production environment. I must have been recorded in test when we look ahead.

    We realized that the change in testing and our link now has the same behavior as the production.

    Unfortunately, this put it on the radar for our security team. Even when you win - you lose!

    Thanks to all of you to post a reply. They helped me be more informed if nothing else.

    Shawn

  • NET Service name configuration

    Hi all

    I had set up an oracle db on my windows machine that has worked well. The database had a listener and 2 names of net services, that I had created with the wizard. After problems with my database, I formatted the hard drive and everything set up from scratch on a clean machine. The problem is, I can create one of the names to net service, which connects successfully. The second returns the message ORA - 12514. TNS listener does not currently of service requested in connect descriptor. The test has failed. The tnsnames.ora even freaked is used by both. Listener even as well. What I am doing wrong?

    Your output of lsnrctl is indicating that your database is registered at the listener with a service that danaos name. Change your TNSNAMES file. ORA file and replace the orcl in sections of danaos service name and try again.

  • Not able to connect to the database using SQLPLUS.

    Hello

    in the connection to the oracle in linux machine using sqlplus utility database I got following error.

    does anyone have an idea about this error?

    [oracle@LOM-NEYTR-RHEL-NEW1 dbhome_1] $ sqlplus

    SQL * more: Production of release 11.2.0.1.0 game may 15 10:22:50 2014

    Copyright (c) 1982, 2009, Oracle.  All rights reserved.

    Enter the user name:

    Enter the password:

    ERROR:

    ORA-00604: an error has occurred at the SQL level 1 recursive

    ORA-01653: unable to extend the table SYS. AUD$ 8 in the SYSTEM tablespace

    ORA-02002: error writing to the audit trail

    ORA-00604: an error has occurred at the SQL level 1 recursive

    ORA-01653: unable to extend the table SYS. AUD$ 8 in the SYSTEM tablespace

    7144389e-3944-4D5C-830e-46539d2d9971 wrote:

    I found the temporary solution. You can go through the following link where I got the idea.

    Oracle: 11g automatically audit | Buffer-Blog

    So has what "temporary" solution applied?

    And especially, what is the permanent solution will you.

    The most common solution, which goes back at least to when I started with v7.3, is to move the aud$ table out of the SYSTEM tables.  And with 11g, there is even a new package for the management of the audit trail, including a method for moving the table.  See DBMS_AUDIT_MGMT

Maybe you are looking for

  • The top of my browser shows when I switch mode full screen @ youtube. WHY?

    The top of my browser shows when I get home mode full screen when watching youtube videos. It wasn't like that yesterday, and I have not changed a thing. I want the old way back if it is true full screen.

  • Installation on multiple systems

    I am considering building a server at home using OSX Server and before I have to buy equipment from the addition, I plan to install on a MacBook Pro in order to familiarise yourself with it. I was wondering if I do, I later will be able to install it

  • Drive more than 90% downloading via Bitcommet

    Hello I have a problem while downloading through BitComet, as you can see in pic 01, the drive is 99% (with BitComet 27.4 Mbps), but actually Bitcomet was download with 990 Kb/s only, which is 0.9 MB / s. You can also see pic03 and pic02, that I find

  • monitor msi tactil

    MI monitor tactil no works. Solo puedo usar raccoon. ¿Hay alguna manera capture the funcion y lo hayamos hecho accidentalmente Québec?

  • using outlook with windows 8 usung comcast

    Just bought a new laptop with windows 8. Try to use office outlook 2010. Internet provider Comcast uses POP3 and now win 8 does not support this. How can I use outlook 2010. with windows 8. Or can I give to the top and laptop computer new retirn Than