Connection for SQL MORE Info

I am trying to get into the application of SQL/Plus and it is not letting me using my old user id and the password I created when I was installing the 10 g and create the database. I use my e-mail address and password and it does not.

Use the password "MANAGER"? I don't know which username to use. Thank you

893027 wrote:
So you're saying that I should not use the SYSTEM as my username?

It's exactly what I'm saying.

This is purely for my class and I am learning to create the Oracle database.

So what? You develop bad habits now, you will continue to propegate poor procedures in the future.

How can we establish a different username next to the SYSTEM?

Find it in the documentation.
Go to tahiti.oracle.com
Explore your selected product and version.
You can find full documentation for the product and version.
Because your product is the RDBMS, one of the manuals of the primaries in this documentation set will be titled (drum roll, please)... SQL reference guide.
You will find useful SQL statements like CREATE USER

OK, now for some lights.
In the world of Oracle all objects must be owned by a user. A common practice in the real world is to create a specificallly to the user in order to have the objects that are required by an application. Let's say I develop application of purchase orders. I would create a user - call PURORD - specifically to own all the tables, indexes, procedures, etc., necessary for the application of the purchase order. And let's say I have a buyer in the Department of the purchaseing from my company (a user of the application of purchase order) named Joe Snuffy. For him, I'll create a user named JOESNUFFY. Oracle is concerned, there is no fundamental difference between PURORD and JOESNUFFY. It's all in the privileges I have as a dba to grant these user accounts. My PURORD user might not get privileges at all - not even CREATE SESSION (you can look upward in the game of the doc I mentioned you). Or I can give him CREATE TABLE, etc., but few things. User JOESNUFFY will get CREATE SESSION and SELECT, UPDATE, DELETE, INSERT on the tables belonging to PURORD, but will not get object privileges CREATE. Joe will connect to the database (through the application) with its JOESNUFFY account.

It is also a common practice to give human DBA user accounts, real on their part with the role DBA who they are conferred. In this way, they work under their own name. They can be checked. They don't accidentally create objects in the SYSTEM tablespace.

This may seem excessive for a class situation, but if you don't develop good habits now, you carry bad habits in the workplace and he don't even know until you have opened the way to hell of DBA.

Tags: Database

Similar Questions

  • bad connect to Sql * more via command and cannot log on to the designer (need for connection string)

    I installed Oracle Developer with success, but having bad connect to Sql more than command line, also unable to connect via the developer tools, I get a TNS: Connect timeout occurred. This happens also for the "Plus" Sql for Windows.

    Oracle Forms connect error.png


    However, I can connect via the Sql Plus command window when it is executed from "Start-> all programs", but not when I first run the command window:

    sqlplus error.PNG


    I have a good Oracle 11 g install on Windows 7 and a good developer Sql install so I can connect to databases, but something does not work when you try to connect through these tools. Although Sql Plus works when called from 'Start-> all programs'

    sqlplus scott/tiger - don't use SQL * Net, you can connect like this even with the listener is stopped.

    Developer SQL can ONLY connect using SQL * Net & can be blocked by the firewall

    to connect using sqlplus & SQL * Net, you need to invoke it as below

    sqlplus scott/tiger@orcl

  • Connection with SQL * more is not possible

    Hello together,

    I have a problem with my database and SQL Plus.

    I can't connect to my DB via SQL Plus, I get the error message: > > ORA_12546: TNS: detonation verweigert (Permission denied) < <.

    I tried it with several users. When I try to log in to enterprise manager or connecting to the DB through SQL Developer works very well with the user > > sys < <, only the SQL more connection does not work.

    It works until yesterday that there are some problems with the DB and the processor and RAM were almost 100% occupied each.


    We use the Version 11 g Enterprise Edition Release 11.2.0.1.0 64 bit Production on a Windows Server 2008 R2 Enterprise Server.

    I am running SQL Plus, Enterprise Manager and SQL Developer directly on the DB server.

    When I start SQL Plus he asks me my username > > enter user name: < < and after that my password: > > password: < <.

    A connection as seen in many forums or document on the internet like > > scott/tiger@ORCL < < never worked on my system, which is also confused me.


    We have no listener.ora file in the folder: ORACLE_HOME/NETWORK/ADMIN only a sqlnet.ora with line > > SQLNET. AUTHENTICATION_SERVICES = (NTS) < < in it.



    Status of the listener:

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

    C:\Windows\System32 > lsnrctl status

    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 18 February 2014 12:14:32

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

    Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))

    STATUS of the LISTENER

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

    Alias LISTENER

    TNSLSNR for Windows 64-bit version: Version 11.2.0.1.0 - Production

    Start date February 18, 2014 10:15:54

    Uptime 0 days 1 hour 58 minutes 42 seconds

    Draw level off

    Security ON: OS Local Authentication

    SNMP OFF

    O:\app\administrator\diag\tnslsnr\QualisysDbNbg\listener\alert\log.XML log listener

    Summary of endpoints listening...

    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=QualisysDbNbg) (PORT = 1521)))

    Summary of services...

    Service "orcl" has 1 instance (s).

    Instance "orcl", State LOAN, has 1 operation for this service...

    The command completed successfully

    C:\Windows\System32 >

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


    I hope someone can help me with this problem.


    Thank you you very much in forward for your answerand greetings

    Matthias


    The sys user must connect as sysdba

    have you tried

    sqlplus 'sys@ORCL as sysdba'

    or

    sqlplus 'sys/yoursyspwd@ORCL as sysdba'

    the first command should work without password for all users group ORA_DBA.

    Scott, the user cannot also exists in your database.

  • Unable to connect to an instance by using EM but properly connect with SQL * more

    Hello

    I followed the following steps (from the document s/n 2 days):

    1. I created a model (including the database) to an instance named "orcl" using DBCA, before we proceed to create the model, DBCA informed me that the Forum might be stopped, I told him to go ahead.

    2. the model has been successfully created.

    3. I am now unable to connect to the instance orcl using EM, but I can connect to this instance without any problem using SQL * more.

    Question: Why am I not able to connect to the instance by using EM? and what should I do to fix this?

    Thank you very much for your help,

    John.

    PS: in case it may be useful, the listener tnsnames and Sqlnet files follow:
    # listener.ora Network Configuration File: E:\Oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = E:\Oracle\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:E:\Oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
        )
      )
    
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE2DAY1)(PORT = 1521))
        )
      )
    
    ADR_BASE_LISTENER = E:\Oracle
    # tnsnames.ora Network Configuration File: E:\Oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    
    DBCA =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE2DAY1)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = dbca.localsite.com)
        )
      )
    
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        )
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
        )
      )
    
    LISTENER_ORCL =
      (ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE2DAY1)(PORT = 1521))
    
    
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = ORACLE2DAY1)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl.localsite.com)
        )
      )
    # sqlnet.ora Network Configuration File: E:\Oracle\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    
    # This file is actually generated by netca. But if customers choose to 
    # install "Software Only", this file wont exist and without the native 
    # authentication, they will not be able to connect to the database on NT.
    
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

    I think you change some configuration of your system as domain/IP address/host name.
    You need

    set ORACLE_SID=orcl
    emca -deconfig dbcontrol db -repos drop
    emca -config dbcontrol db -repos create
    

    then after result

  • Can I connect to SQL * more as SYS after connecting as a user and then run a GRANT?

    Oracle 11 g 2

    Linux RHEL 6.3

    SQL * Plus 11.2.0.2 on Windows 7

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

    I am running a script SQL through SQL * more connected as "DOE, JOHN".

    In the SQL script, I need to connect as SYS to make a GRANT EXECUTE on a SYS package (e.g. GRANT EXECUTE ON DBMS_CRYPTO to JOHN;).

    But it fails with the following error:


    GRANT EXECUTE ON TO JOHN DBMS_CRYPTO
    *
    ERROR on line 1:
    ORA-01917: user or role 'JOHN' does not exist

    But of course, 'JOHN' are.  The rest of the SQL script is running "DOE, JOHN" without any problem.

    The code segment of SQL script in question is:

    connect sys/password as sysdba
    GRANT EXECUTE ON DBMS_CRYPTO TO ROYSECITYDATA;  <-fails here
    to connect/DOE

    Please advise on what my being the issue.

    tx103108 wrote:

    I connect to a remote database.  All dbs distance have the same instance name as they are all images.  I see where you're going (I think).  Should I try

    I'll try to connect sys/password@MYDB

    Sounds like a plan... (the instance_name returned with what you expected? or something else?)

  • Unable to connect to the database using SQL * more

    Hi, I have Oracle 10 g XE installed in my labtop, and I can't connect using SQL * more.
    I can connect using the User Interface of navig however, I could do after the following procedure to change the password for the sys account:
    -Open a command prompt
    -type sqlplus
    -On the line "Enter user name", enter the sysdba virtue
    -On the SQL > prompt, type alter user sys identified by NewPassword;

    But the thing is that even if I am able to connect using sys/NewPassword from my browser UI, I don't get the same result when do this using the SQL prompt.

    What I try to do is the following:
    SQL > connect sys/NewPassword
    Can I get first a warming of the planet by saying I should use sysdba or sysoper to connect to the system account, but none of those who work.

    Can anyone advice me on this subject?

    Thanks in advance

    Does make sense at all?

    You really need to Read The Fine Manual
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e16508/TOC.htm

    When you log in as USER "SYS" DB must be described as 'AS SYSDBA'

    sqlplus
    / as sysdba
    SHOW USER;
    -line above indicates that you are now connected to the DB as "SYS"!

    SQL > CONNECT SYS / AS SYSDBA

  • SQL * more syntax to connect to Apex 3.1 workspace

    How to connect to a particular application of workspace Apex using SQL * MORE?

    In the tenth Summit, Sql * more command is: "sqlplus username/password" to connect and connect to the base.

    However, at the Apex 3.1 "sqlplus username/password" is no longer the correct syntax to connect and connect to the database is created in the workspace Apex.

    I created a table called "Sample" in the workspace Apex. I can run the sql query on the "Sample" in the GUI Apex SQL Workshop table. Type "sample to describe" workspace for SQL workshop gives me the desired result.

    However, when I come out to the command prompt and use sqlplus to issue "sample", I get "table or view does not exist.

    Is there any documentation on how to use SQL * PLUS to connect to the tables created in the workspace Apex?

    TIA

    1. If no database not created in a workspace

    2. There are schemas attached to a workspace (or created by it)

    3. you must connect to sql more like this:

    C:\Users\Denes Kubicek>sqlplus
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Di Okt 14 22:19:28 2008
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Benutzernamen eingeben: dkubicek@xe
    Kennwort eingeben:
    
    Verbunden mit:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    
    SQL> desc emp;
     Name                                      Null?    Typ
     ----------------------------------------- -------- -----------------
    
     EMPNO                                     NOT NULL NUMBER(4)
     ENAME                                              VARCHAR2(10)
     JOB                                                VARCHAR2(9)
     MGR                                                NUMBER(4)
     HIREDATE                                           DATE
     SAL                                                NUMBER(7,2)
     COMM                                               NUMBER(7,2)
     DEPTNO                                             NUMBER(2)
    
    SQL>
    

    This has nothing to do with the apex.

    I would say, your workspace has several patterns that are entrusted to him. You were probably asking a particular schema and he gave you the correct results. In SQL more trying to describe a table that is not there.

    This should give you some results:

    SELECT object_name, object_type
      FROM all_objects
     WHERE owner = 'DKUBICEK';
    

    where you replace "DKUBICEK" with the name of schema, you log into SQL Plus.

    To see the schema that you use for SQL Workshop / SQL commands, see the dropdown in the top right corner - schema.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • get my IPAddress through sql * more

    Hello all;

    I tried to use
    select sys_context('Userenv', 'ip_address') from dual;
    to get my ip address and it's back a white, again I tried to use
    select utl_inaddr.get_host_address('johnp') from dual
    and it gives me the following error below
           *
    ERROR at line 1:
    ORA-24247: network access denied by access control list (ACL)
    ORA-06512: at "SYS.UTL_INADDR", line 19
    ORA-06512: at "SYS.UTL_INADDR", line 40
    ORA-06512: at line 1
    and I give all the subsidy required to the user associated with the help
    grant execute on utl_inaddr to financecc;
    Published by: user13328581 on March 13, 2012 08:06

    user13328581 wrote:

    I know Ipconfig in the command windows... and I know the difference between the client and the server computer. I'm doing a simple test that is to know if there is an ip address any available when you have a client and a server running on the same computer

    The server will see IP address of the client in this case if the client-server connection has been made by IP. A local connection using CPI (direct process-to-process communication). No IP involved. And so the server does not recognize the customer as a client IP.

    Example:

    // local connection that does not use TCP/IP
    /usr/lib/oracle/xe> sqlplus "/ as sysdba"
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Mar 14 18:10:16 2012
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    
    SQL> select sys_context('user', 'ip_address' ) as CLIENT_IP from dual;
    
    CLIENT_IP
    ---------------
    
    SQL> exit
    

    Only when the client is an IP connection, the server has the means to determine the IP address of the client. For example

    // force a TCP/IP connection via the Listener via localhost
    /usr/lib/oracle/xe> sqlplus scott/tiger@"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)) (CONNECT_DATA=(SID=vlk)))"
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Mar 14 18:12:14 2012
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    
    SQL> select sys_context('user', 'ip_address' ) as CLIENT_IP from dual;
    
    CLIENT_IP
    ---------------
    127.0.0.1
    

    by the way your syntax

    ! ipfconfig> 
    

    does not work, it gives the following errors below

    It depends on where run you it from. This command is intended for SQL * more and gives instructions to create a child process that calls the operating system command line. For example

    SQL> ! /sbin/ifconfig eth0
    eth0      Link encap:Ethernet  HWaddr 70:71:bc:ac:3d:49
              inet addr:10.251.93.30  Bcast:10.251.93.255  Mask:255.255.255.0
              inet6 addr: fe80::7271:bcff:feac:3d49/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:17171605 errors:0 dropped:2200 overruns:0 frame:0
              TX packets:9055411 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:11744534737 (11.7 GB)  TX bytes:1429625375 (1.4 GB)
              Interrupt:20 Memory:fe400000-fe420000
    
    SQL>
    

    This isn't a PL/SQL statement (language server).

    Note that all side code Server (SQL and PL/SQL) is sent by SQL * more to the server process. In addition, SQL * Plus itself has a primitive vocabulary control and these commands it runs on the client.

    This is why I pointed to the possible confusion of client-server, because there is a very clear and definitive separating SQL * more and its commands and the Oracle server and its languages SQL and PL/SQL.

  • SQL comment in "sql * more ' runs inside.

    See code below. Why I get after release:
    SQL>  /*select sysdate from dual*/
    
    SYSDATE
    ----------
    16.08.2010
    I have enterd only a comment why it comes out as a command? Is there a solution for Sql * more so that he would interpret "/ * aa * /"-style comment as true comment? ".
    SQL*Plus: Release 10.2.0.3.0 - Production on E Aug 16 14:17
    
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 -
    With the Partitioning, OLAP and Data Mining options
    
    SQL>  /*select sysdate from dual*/
    SP2-0103: Nothing in SQL buffer to run.
    SQL> select sysdate from dual;
    
    SYSDATE
    ----------
    16.08.2010
    
    SQL>  /*select sysdate from dual*/
    
    SYSDATE
    ----------
    16.08.2010
    
    SQL> /* select sysdate from dual */
    SQL> select sysdate from dual;
    
    SYSDATE
    ----------
    16.08.2010
    
    SQL> /* select sysdate from dual; */
    SQL> select sysdate from dual;
    
    SYSDATE
    ----------
    16.08.2010
    
    SQL> 

    I don't know, but it's because
    entry has / SQL more will take place the last executed query.
    So in / * select sysdate from double * /.
    Maybe sqlplus takes just the first and therefore the executed query previously running

  • Connection tab Sybase shows is not in the new option of connection in SQL developer

    Hello

    I do not see a Sybase connection tab in the new connection option in SQL developer 2.1, as it was available in version 1.5

    Why is this? How to fix?

    Hello

    Have you installed the JTDS JDBC driver still in SQL Developer.
    This is necessary before you get the tab connection for SQL Server and Sybase.

    You can install the driver, JTDS action to Check For Updates.

    Kind regards
    Dermot
    SQL development team

  • Connection to the 11g on Oracle_Developer_Days.ova with sql + more

    I downloaded the Oracle_Developer_Days.ova and have confirmed with connectivity

    C:\Users\robm > ping ServeurOracle

    ServeurOracle ping [192.168.11.18] with 32 bytes of data:

    Reply from 192.168.11.18: bytes = 32 time < 1 ms TTL = 64

    Reply from 192.168.11.18: bytes = 32 time < 1 ms TTL = 64

    Reply from 192.168.11.18: bytes = 32 time < 1 ms TTL = 64

    Reply from 192.168.11.18: bytes = 32 time < 1 ms TTL = 64

    Ping statistics for 192.168.11.18:

    Packets: Sent = 4, received = 4, lost = 0 (0% loss),

    Time approximate round trip in milli-seconds:

    Minimum = 0ms, Maximum = 0ms, average = 0ms

    C:\Users\robm >

    I have advanced and installed the client instant and also installed the sql + more

    C:\Users\robm > sqlplus scott/tiger@orcl

    SQL * more: Production of the 12.1.0.1.0 on sat Nov 30 00:27:44 version 2013

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

    ERROR:

    ORA-12514: TNS:listener is not currently of service requested in connect

    descriptor of

    Enter the user name:

    Here the tnsnames.ora can, I did you see errors?

    XRACQ_MYSERVICE_TAF =

    (DESCRIPTION =

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

    (LOAD_BALANCE = yes)

    (CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = orcl)

    (FAILOVER_MODE =

    (TYPE = SELECT)

    (METHOD = BASIC)

    (RETRIES = 180)

    (DELAY = 5)

    )

    )

    )

    any ideas on how to make it work?

    I now get

    ORA-01017: name of user and password invalid. connection refused

    using tsnames.ora

    WEIRD =.

    (DESCRIPTION =

    (ADDRESS_LIST =

    (ADRESSE = (PROTOCOL = TCP) (HOST = 192.168.11.18)(PORT = 1521)))

    (CONNECT_DATA =

    (SERVICE_NAME = orcl)

    )

    )

    so I seem to connect now... . How can scott Tiger be wrong isn't the default?

  • Connect to the database with SQL * more: is TNSNAMES. ORA used?

    Hello

    We have a local database called DEV01 and a copy of this database in a data center. To be able to connect to both databases, the TNSNAMES file. ORA

    on the local database server (not the one in the data center) has the following entries:

    / * Entry for the local database * /.

    DEV01_local, DEV01_local. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server01) (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = DEV01)
    )
    )

    / * Entry for the database in the data center * /.

    DEV01, DEV01. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server02) (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = DEV01)
    )
    )

    When I connect to the local database server, I set the Oracle environment as follows:

    export ORACLE_SID = DEV01

    export PATH=/opt/oracle/app/oracle/product/9.2.0/bin:$PATH

    export ORACLE_HOME=/opt/oracle/app/oracle/product/9.2.0

    Now I start SQL * more as follows:

    Oracle # > sqlplus user/user

    SQL > select instance_name, host_name from v$ instance;

    INSTANCE_NAME HOST_NAME

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

    SERVER01 DEV01

    As the SID is on two databases of the same (DEV01) I really don't understand how Oracle decides which of the SQL databases * more connects to.

    Is it the entry in the TNSNAMES file. ORA?

    But when I start SQL * more as follows:

    Oracle # > sqlplus user/user@DEV01_local

    SQL > select instance_name, host_name from v$ instance;

    INSTANCE_NAME HOST_NAME

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

    SERVER01 DEV01

    or

    Oracle # > sqlplus user/user@DEV01

    SQL > select instance_name, host_name from v$ instance;

    INSTANCE_NAME HOST_NAME

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

    DEV01 server02

    everything is as expected.

    Does anyone know who is the chosen database when just to connect with 'sqlplus user/user' (without the @DEV01 or @DEV01_local)?

    Any help will be appreciated!

    Rgds

    Jan

    When you connect to the local database that is connected to the server01, you need only specify the sid in the environment, in this case, Oracle tnsnames file to connect, actually uses, it uses any of the listener.  It uses what is called a connection needed.  It is purely a side connection server, and as long as the sid is located in the environment resolves to a database running on that server, you will be get connected.

    When you connect using the @connect_descriptor, like you second case, then Oracle will use the configured naming, including tnsnames, methods to solve the 'real' database  In this case, the auditor is required to create the connection to the database.

    John

  • How to get SQL * more to connect to my database of Apex?

    How can I get SQL * more to connect to my database of Apex? By using the username and password I use to connect to Apex does not (ORA-01017). What should I do to connect to my db Apex?

    Thank you
    Kim

    Connection string is "connect username/password@database".

    The analysis schema is a database account, that's why you can log on to SQL * more like that.

    This allows to get the database name

    select instance_name from v$instance;
    

    And if you forgot the password for the PT

    alter user PT identified by 'your_new_password';
    

    Scott

  • SQL more unable to connect (computers connected via a DSL router)

    Hello!

    I have two computers connected locally via a DSL router. His IP address is 192.168.1.64 IP of the other is 192.168.1.65.
    "I'm trying to connect to 192.168.1.64 via SQL more 192.168.1.66 by running the following command: sqlplus system@"192.168.1.64/orcl.168.1.100 "and receive this error message:" ORA-12170: TNS: Connect timeout occurred. " I thought it was the default Windows Firewall that has caused this and changed the windows firewall settings in 192.168.1.64 adding port 1521 in the list of windows firewall. Now, I get this error: "ORA-12541: listener TNS:no.»

    Published by: totalnewby on June 12, 2010 10:53

    totalnewby wrote:
    Hello!

    I have two computers connected locally via a DSL router. His IP address is 192.168.1.64 IP of the other is 192.168.1.65.
    "I'm trying to connect to 192.168.1.64 via SQL more 192.168.1.66 by running the following command: sqlplus system@"192.168.1.64/orcl.168.1.100 "and receive this error message:" ORA-12170: TNS: Connect timeout occurred. " I thought it was the default Windows Firewall that has caused this and changed the windows firewall settings in 192.168.1.64 adding port 1521 in the list of windows firewall. Now, I get this error: "ORA-12541: listener TNS:no.»

    Published by: totalnewby on June 12, 2010 10:53

    =================================

    Suppose you have the following in your tnsnames.ora:

    Larry =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = myhost) (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = curley)
    )
    )

    Now, when you issue a connect, say like this:

    $> sqlplus scott/tiger@larry

    TNS will appear in your tnsnames.ora for an entry called "larry". Then, tns sends a request to (PORT = 1521) on (HOST = myhost) to aid (PROTOCOL = TCP), requesting a connection to (SERVICE_NAME = curley).

    Where's (HOST = myhost) on the network? When the request is passed to tns to the next layer in the network stack, the name "myhost" resolves to an IP address, either via a file 'hosts' local, through DNS, or possibly other mechanisms being used less. Alternatively, you can hard-code the IP (HOST = 123.456.789.101) in the tnsnames.ora.

    Then, the request arrives at port 1521 myhost. If all goes well, there is a listener on myhost configured to listen on port 1521, and this listener knows SERVICE_NAME = curley. If so, you'll be connected.

    A few important points.

    First, the listener is a process only the side server. It's all in life seeks applications for reception for connections to the databases and set up these connections. Once the connection is established, the listener is out of the picture. It creates the connection. It does not support the connection. A listener, linking an oracle of the House, listening on a single port, use multiple instances of database in several versions of several houses. It is unnecessary complexity to try to have several headphones. It's like the telephone company, to build a separate table for each customer.

    Secondly, the tnsnames.ora file is a client-side problem. Its purpose is to address resolution - the equivalent of the 'hosts' file tns further to the bottom of the network stack. The only reason it exists on a host computer is because this machine also can run client processes.

    What can go wrong?

    First, there may not be an entry for 'larry' in your tnsnames file. In this case, you get "ORA-12154: TNS: could not resolve the connect identifier specified" no need to go looking for a problem on the host, with the listener, etc.. If you cannot place a phone call because you do not know the number (cannot find your phonebook (tnsnames.ora) or can not find the party looking for listed in it (no entry for larry)) you don't look at problems at the switchboard.

    Perhaps the entry for larry was found, but myhost could not be resolved to an IP address (for example there is no entry for myhost in the local hosts file). This will mean by "ORA-12545: Connect failed because target host or object does not exist.

    Maybe there is an entry for MyServer in the local hosts file, but it specified a bad IP address. This will mean by "ORA-12545: Connect failed because target host or object does not exist.

    Maybe the INVESTIGATION period was good, but there is no listener running: "ORA-12541: TNS:no listener.

    Maybe the INVESTIGATION period was good, there is a listener to myhost, but he is listening on a different port. "ORA-12560: TNS:protocol adapter error.

    Maybe the INVESTIGATION period was good, there is a listener to myhost, listening on the specified port, it's unknown SERVICE_NAME = curley. "ORA-12514: TNS:listener is not currently of service requested in connect descriptor.

    =====================================

  • SQL connection * for Microsoft SQL Server

    I want to set up a connection to My MS Sql Server using SQL * MORE. I have reviewed the Documents, but have not been able to run I have download the connector.

    Thanks for any help you can provide...

    Hello
    If you want to connect to SQL * Server since SQLPLUS then you must use is the gateway of database for SQL * Server (DG4ODBC) or gateway for ODBC (DG4ODBC) database.
    You can do this by using the connector supplied with SQL * Developer.
    See this note in My Oracle Support for more information-

    Note.233876.1 Connection Options abroad of banks of data and databases non-Oracle

    or this Web site-

    http://www.Oracle.com/technology/products/gateways/index.html

    Kind regards
    Mike

Maybe you are looking for

  • When I do the signature in HTML format is a form of address line and are not right. How can I fix it?

    I get an email with the name signature commercial \phone # ect ect... real basic stuff. When I do without HTML there is in formal, but VERY light... I only hit HTML to make it bolder\darker...but when I type HTML everything appears in a single straig

  • Tecra Z50-A-14 t - bad connection WiFi signal

    In short. Absolutely the same problem with my new Tecra.Stable connection by cable. Bad connection same 3 5 meters from the router. If the distance is longer, or I use the laptop in another room sometimes it s no link at all.The card is Intel (R) Dua

  • Satellite P200/S04 PSPB6A - Infrared Driver for Win 7

    I recently updated my Toshiba P200/S04 (PSPB6A-0CS04M) for Windows 7 32 bit. After upgrading my media Center remote did not work, and I found that it was because Windows didn't detect my infrared device, with nothing else appearing in Device Manager.

  • BSoD Unmountable Boot Volume error message

    This morning my laptop was running slowly and I executed a forced shutdown. When you turn on the computer, I kept getting a blue screen with the error message "UNMOUNTABLE_BOOT_VOLUME". All the options I tried met the same fate. I have the recovery d

  • Custom in the alt - tab popup icon

    I was wondering if there is a chance to see a custom icon, even in the alt - tab popup (in mode "non-aero"). After that I changed the icon of the application pinned to the taskbar without problem, removed the IconCache.db file and rebooted the system