Connecting SQL Plus to 10g XE

Hi,
I have Oracle 10g XE and Oracle Dev Suite installed on my computer. I want to connect to 10g XE via SQL Plus or from within Forms Builder but I don't know what to specify for Host String (in SQL Plus) or Database (in Forms Builder). "XE" doesn't work. Any ideas what should I put in for those params?
Thanks in advance,
Behi

First you must make sure that your tnsnames.ora is configured correctly in 10g Devsuite (Forms)
to do this you either configure it manually or use the Net Configuration Assistant found under
All Programs<devsuit_home>/configuration and migration tools/Net Configuration Assistant.
For manual configuration open the tnsnames.ora found under directory
%oraclehome%/network/admin/tnsnames.ora
and add a connection descriptor and save the file. remeber to take a backup copy.
your file should look something like this.
XE =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = XE)
  )Regards,
Tony

Similar Messages

  • Connecting SQL*PLUS to Micrsoft SQL Server

    I want to setup a connection to My MS Sql Server using SQL*PLUS. I've looked at the Documents but have not been able to get it to work I have download the Connector.
    Thank you for any help you can provide..

    Hi,
    If you want to connect to SQL*Server from SQLPLUS then you need to use either the Database Gateway for SQL*Server (DG4ODBC) or the Database Gateway for ODBC (DG4ODBC).
    You cannot do it using the connector supplied with SQL*Developer.
    See this note in My Oracle Support for further information -
    Note.233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases
    or this website -
    http://www.oracle.com/technology/products/gateways/index.html
    Regards,
    Mike

  • Connect sql*plus to ms access

    Dear All,
    I want to get connect to Microsoft Access by SQL*Plus, i want to get data form MS access

    Hi,
    You can get metadata from MS Access database using JDBC-ODBC bridge connection in Data Modeler.
    Ivan

  • HOW TO START MAKING DATABASE USING ORACLE SQL PLUS in 10g?

    how will i create database using sql plus?
    does the code of sql applicable to it..?
    do i have to use the "create db <database name>", use and " create table also,.."
    pls help me..
    thanks

    At dos prompt :
    C:\>set ORACLE_SID=<your SID>
    C:\>sqlplus / as sysdba
    you get connected as sys user. Don't use this connection to create your own objects, create users instead.... but it would be useful to read some documentation, for example Starting SQL*Plus and manuals mentioned there.

  • CANNOT CONNECT SQL*PLUS WITH ORA-12547

    제품 : ORACLE SERVER
    작성날짜 : 2004-05-20
    발생)
    oracle 디렉토리를 변경하거나, 오라클 화일의 위치 또는 permission 을
    변경한 다음부터, 오라클을 사용하는 일반 OS account 들이 sql*plus
    에 접속할 때 다음과 같은 에러가 발생하면서 접속할 수 없는 현상입니다.
    sqlplus scott/tiger
    ld.so.1: <product name>:fatal:libsunmath.so.1: can't open file: errno=2
    ld.so.1: <product name>:fatal:libsunmath.so.1: can't open file: errno=2
    ld.so.1: <product name>:fatal:libsunmath.so.1: can't open file: errno=2
    ERROR: ORA-12547: TNS:lost contact
    make -f sqlplus.mk sqlplus 해도 에러 없이 생성된 sqlplus 가
    위와 같은 에러를 보내면서 접속되지 않습니다.
    해결 방안)
    이 문제는 Solaris 의 Oracle 7.3.3 에서 발생합니다. listener 를 통해
    접속한 process 는 LD_LIBRARY_PATH 가 설정되어 있지 않습니다.
    따라서, listener.ora 를 다음과 같이 setting 합니다.
    (SID_DESC=(SID_NAME=FNDFS)
    (ORACLE_HOME=/appltop/fnd/6.1.1)
    (PROGRAM=FNDFS)
    (ENVS='LD_LIBRARY_PATH=/usr/dt/lib:/usr/openwin/lib:$
    ORACLE_HOME/lib'))
    listener 를 거치지 않는 사용자들은 다음과 같이 작업하십시오
    즉, libsunmath.so.1 은 7.3.3 부터 $ORACLE_HOME/lib 에 포함되어 있는
    library 입니다. 따라서, LD_LIBRARY_PATH 에 $ORACLE_HOME/lib 가 포함되어
    있는지 확인하고, 만약 포함되어 있다면, 이 화일을 /usr/bin 으로 copy 하고
    chmod 755, chown/chgrp를 bin 하면 됩니다.
    "$ORACLE_HOME/lib" 에 있는 "libsunmath.so.1" 을 copy 하고 permission 을
    변경하는 절차는 다음과 같습니다.
    1. % cd /u01/app/oracle/product/7.3.3/lib/
    2. % cp libsunmath.so.1 /usr/lib
    3. % cd /usr/lib
    4. % chown bin libsunmath.so.1
    5. % chgrp bin libsunmath.so.1
    원인)
    oracle 을 설치한 후나 oracle product 에 변경이 일어난 후에 root.sh 를
    수행하여 화일들의 owner, group 등을 변경하는 작업을 합니다.
    이 작업 도중, library 에 setting 해두었던 link 가 끊어졌을 때에
    위와 같은 에러가 발생합니다.

    Brian Tkatch wrote:
    SQL*Plus inside the VM can connect to XE, but not to either remote server. It just hangs for a while and finally returns: ORA-12545: Connect failed because target host or object does not exist
    Sounds like hostname resolution failed.
    A hostname needs to be resolved into an IP address. So if you are using a hostname in the TNS connection string, you need to make sure that it can be resolved into an IP. Using the ping <hostname> command is an easy way to determine if the hostname is resolved.
    Some listeners (such as remote and RAC listeners), accepts a client connection, and in response redirect the client to a different hostname (and even port). For example, a remote listener can service 10 instances (each with a different service name). The client connects, requesting servcice5. The listener redirects the client to hostname ora-server5 on port 1521. The client now attempts to connect to ora-server5, by resolving that hostname into an IP and then initiating the connect call.
    So the listener can redirect the client to a new hostname - and the client needs to be able to resolve that hostname. The error you get therefore does not always relate to the initial listener connection. It can also result when the client driver follows the listener's redirect and attempt a new connection to a new host.

  • Urgent How to connect sql plus from spx network

    My lsnrctrl is giving error show below
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 2.3.2.1.0 - Production
    System parameter file is D:\ORAWIN95\network\admin\listener.ora
    Log messages written to D:\ORAWIN95\network\log\listener.log
    Trace information written to D:\ORAWIN95
    \network\trace\listener.trc
    Attempted to listen on: (DESCRIPTION=(CONNECT_TIMEOUT=10)
    (ADDRESS=(PROTOCOL=SPX)
    (Service=dev3_lsnr)))
    TNS-12560: TNS:protocol adapter error
    TNS-00530: Protocol adapter error
    32-bit Windows Error: 55: Unknown system error
    no listener error
    TNS-12560: TNS:protocol adapter error
    no listener error
    I am using windows 95 and have a personal oracle 7.3.And want to
    connect on spx network
    null

    Login as sysdba when you are using SYS user
    i.e in username=sys as sysdba
    password=<your password>
    And Refer this doc for better understanding
    http://docs.oracle.com/cd/B19306_01/server.102/b14357/ch3.htm

  • SQL*Plus with Oracle 10g Express Edition

    How Can I do to log in using SQL*Plus into Oracle 10g?
    My Schema is: Banco.Global
    My Password is: 111111
    I need to write SET SERVEROUTPUT ON to get answer?
    I opened the Prompt, but i don't know to log in.
    Thanks and my english is not as well as you.

    If i write:
    SQL>connect "Banco.Global"/111111
    a error message is raised: Invalid username/password; logon denied
    but if I log in into Home Page with the same Username and Password, I get to log in.
    There is difference to connect SQL*Plus and the connect with Home Page the Oracle?
    I need to connect with SQL*Plus, because i need to make a test.

  • SQL*Plus vs web/browser admin interface for 10g Express

    hello, I'm a newbie in Oracle. Seem like I executed the setup script using SQL*Plus successfully (the scrpt CREATE TABLE then INSERT setup data) but seems like Oracle 10g Express web/browser interface tells me the setup data has never been inserted into the tables created?!
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Apr 6 14:10:05 2009
    +                         Copyright (c) 1982, 2005, Oracle. All rights reserved.+
    +                         SQL> connect dev/dev+
    +                         Connected.+
    +                         SQL> set serveroutput on+
    +                         SQL> @C:\dev\...sql\Oracle\SetupSchema\setup.oracle.tables.sql+
    +                         1125 /+
    +                         PL/SQL procedure successfully completed.+
    I verified this from SQL*Plus environmet:
    SQL> select count(1) from GenericCombolistItem
    +2 /+
    COUNT(1)
    +506+
    I then closed SQL*Plus and tried to browse via :
    http://127.0.0.1:8081/apex/f?p=4500:1003:480765345738397::NO:1003::
    (Start>All Programs>Oracle Database 10g Express Edition>Go to Database Home Page)
    I ran the count(1) SQL again just to check. The table is empty?! I logged into SQL*Plus AND 10g web interface using same credential dev/dev. Not sure what's happening why I can see data from SQL*Plus but not web/browser admin interface

    GOT IT! --- I needed COMMIT

  • Official link to download sql*plus (linux)  for 10g  database

    Good Morning to all ;
    Can anyone provide official link to download sql*plus for 10g database ?
    I am using Virtual machine version 7. I want to configure SQL*Plus utility in my virtual machine ..
    Please provide any official link or torrent link. It's for our learning purpose.
    Thanks in advance ..
    OS : REDHAT5, OEL 5
    VMWARE : Version 7
    Product : 10g R2

    Hello ;
    I can't be enable SQL* Plus in my VMWARE.
    *$ unzip instantclient-sqlplus-linuxppc32-10.2.0.1-20051121.zip*
    Archive: instantclient-sqlplus-linuxppc32-10.2.0.1-20051121.zip
    inflating: instantclient_10_2/glogin.sql
    inflating: instantclient_10_2/libsqlplus.so
    inflating: instantclient_10_2/libsqlplusic.so
    inflating: instantclient_10_2/sqlplus
    *[oracle@rhel5 SHARE]$ cd instantclient_10_2/*
    [oracle@rhel5 instantclient_10_2]$ ls -l
    total 1135
    -r-xr-xr-x 1 root root 1525 Nov 12 2005 glogin.sql
    -rwxrwxrwx 1 root root 1445591 Nov 12 2005 libsqlplusic.so
    -rwxrwxrwx 1 root root 857299 Nov 12 2005 libsqlplus.so
    -rwxrwxrwx 1 root root 18391 Nov 12 2005 sqlplus
    *./sqlplus*
    bash: ./sqlplus: cannot execute binary file
    Please provide me the steps to continue ..

  • Replace host name in SQL Plus

    hi,
    how i can change host name intead of SQL> in sql plus ,
    like whenever i connect SQL PLUS scott/tiger@servername, it automatically change prompt SQL> to SERVERNAME>
    thanks in advance
    Noman ul haq

    Hi,
    U can check ur glogin.sql on ur client machine that sets your SQL prompt to SERVERNAME> . So that u can make change in that file , other wise give the following command at ur sql prompt
    set sqlprompt SQL>
    Cheers,
    Vidyadhar

  • Within SQL*Plus, get error code of host command

    Hello everyone,
    I am currently writing an SQL*Plus (Oracle 10g) that has a big logic and somewhere in the middle, I have to call a host command, which is an C++ function.
    I call it using
    SQL> HOST cd
    SQL> HOST cd bins
    SQL> HOST ./my_procedureBut, I need to get the return code of my procedure to see if it finished correctly?
    I checked [the manual|http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch4.htm#sthref883] but they don't say anything about return codes.
    When I try:
    SQL> host echo $?
    0It always returns 0, even if I SIGTERM or SIGKILL the child process. Anyone has an idea on how is it possible to retrieve the return code?
    Thanks

    user13117585 wrote:
    Hello guys and thanks for your answers.
    Let me tell you a little more about my problem... I have a 3 steps process. The first step is done in the database. It updates a few tables. Then, when that step successfully ends, I need to start a second step. That second step is done on the server where I have my SQL Plus session. Because I actually have 2 different machines. The first one is where the database is running and the second one where I have SQL Plus (Oracle client 10g) and the program that I have to start in this second step. Then, once this process is finished and his return code is 0, then I have to execute the third step in the database.
    Basically, I wanted to have something like:
    VARIABLE returnCode
    BEGIN
    :returnCode := some_package.do_step_1;
    -- do whatever I want with returnCode.
    EXCEPTION WHEN ...
    END;
    HOST execute_external_program
    BEGIN
    IF external_job_succeed THEN
    some_package.do_step_3
    END IF;
    EXCEPTION...
    END;
    /I wanted to use the Oracle Scheduler to create an EXTERNAL JOB. The problem is that the external program is not deployed on the same machine as the database.I know that on 11g, we have external remote jobs. But I'm on 10g and I have no agent on the server where the external program is. So, what are my options? SQL*Plus and the host command... Or I can also write a bash script to do that... Or any hight level programming language...
    Any other idea?
    Thanks again guys,move functionality of second step into PL/SQL procedure resident inside DB.

  • SQL*Plus: Comment appears in Default-Column

    Please look at this commands, executed in SQL*Plus (Oracle 10g):
    create table t1 (
    c1 number,
    c2 number default 0 -- comment in sqlplus
    select column_name,data_default from all_tab_columns where table_name='T1';
    COLUMN_NAME                    DATA_DEFAULT
    C1
    C2                             0 -- comment in sqlplus
    The comment is stored in the data dictionary! ?:|
    insert into t1 (c1) values (0);
    commit;
    But the default clause works:
    select c1,c2 from t1;
    C1        C2
    +0 0+
    Is it a bug or is it a feature???
    Greetings from Germany
    Wolfgang

    From: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_constraints.htm#sthref626
    Setting Default Column Values
    Default values can be defined using any literal
    Bug or feature?
    It depends on how literal you interprete literals?
    !http://www.designer-daily.com/wp-content/uploads/2009/06/bug-feature.jpg!

  • SQL Plus and ODBC w/different database types

    In order to connect to Oracle lite, we go through ODBC in SQL Plus (ex:login/pw@ODBC:polite)
    Can I utilize this method to connect SQL Plus to a SQL Server 7 database and from there run the COPY TO command to copy data into my Oracle database? If so, what do I need to install to make this work? Is there a specific version of SQL Plus that this works with?

    examples:
    - optimizer_mode is 'RULE' when I select using SQL*Plus and 'CHOOSE' when I use SQL*Plus Worksheet.
    - large_pool_size is 32Mb when I select using SQL*Plus and 108Mb when I use SQL*Plus Worksheet.
    etc.

  • ERROR IN CONNECTING IN SQL PLUS(ORACLE DEVELOPER SUIT 10g)

    hi Friends
    I have just installed ORACLE DEVELOPER SUIT 10g. my DATABASE is ORACLE XE(express edition) and username ,password for database is "SYSTEM","*****".
    when i log in SQL PLUS witn this user name and password ,and HOST STRING=XE.it shows an ERROR =             ORA-12154: TNS:could not tesolve the connect identifier specified.
    my tnsname.ora is
    XE =
      (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ARUNSOROUT-PC)(PORT = 1521))
        (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)   )  )
    EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1)) )
        (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) )
    ORACLR_CONNECTION_DATA = (DESCRIPTION =   (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))   )
        (CONNECT_DATA =   (SID = CLRExtProc) (PRESENTATION = RO) )  )
    please help me in solving this ERROR.

    This forum is for the SQL Developer tool, not for general SQL or PL/SQL questions.  The clue is in the name.
    Try asking in the Database General or SQL and PL/SQL forums.

  • SQL*Plus Release 9.2.0.1 remote connection to 10g EX

    Greetings,
    I am trying to access my XE database from a linux machine using SQLplus 9.2.0.1. I do the following:
    sqlplus /nolog
    sql>connect username/[email protected]:XEERROR:
    ORA-06401: NETCMN: invalid driver designator
    If I leave out the "XE" I get the following error:
    sql>connect username/[email protected]:
    ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect
    descriptor
    There seems to be nothing wrong with my database (tnsping works, etc).
    One of the enviromental variables in linux is "ORACLE_SID=CLASS1"
    I might have a syntax error in the connect function.
    Thanks in advance to whoever can help me. I viciously search the forum before posting this and could not get it to work.
    Andrey.

    Andrey,
    Is there a reason why you are using a colon between the <hostname>.<domain> and XE? If you use a period instead of a colon and define the default domain in the sqlnet.ora file as follows:
    NAMES.DEFAULT_DOMAIN = <hostname>.<domain>.XE
    You should be able to use a similar TNS alias but the colon will trigger an error. If you define your TNS alias as <hostname><domain>:XE and do not define the default domain in the sqlnet.ora file, then you should be able to connect from the command-line but not from within the SQL*Plus environment. For example, using this tnsnames.ora entry:
    hostname.domain:XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname.domain)(PORT = 1521))
    (CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = XE)))
    You can connect running this at the command line:
    [oracle@s1 admin]$ sqlplus plsql/[email protected]:XE
    SQL*Plus: Release 10.1.0.2.0 - Production on Mon Nov 14 18:22:54 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Beta
    SQL>
    However, you will get the following running:
    [oracle@s1 admin]$ sqlplus /nolog
    SQL*Plus: Release 10.1.0.2.0 - Production on Mon Nov 14 18:21:42 2005
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> conn plsql/[email protected]:XE
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    Since the error will not occur if you define a default domain, it appears that changing the colon to a period may be your best solution.

Maybe you are looking for

  • Update a table in the database from a report

    The user needs to print a report multiple times for the day but needs to knwo whether or not the data was already printed so that it is not printed again...therefore I have a y/n/all field on the report to allow the user to choose what subsets of dat

  • To Match Down payment with a invoice in foreign currency

    Dear all I post a down payment: amount is 100000 USD  with exchange rate USD =0.92 EUR I post a invoice:  amount 100000 USD  with exchange rate USD = 0.95EUR My local currency is EUR My invoice is paid by down payment amount Please tell me How can I

  • Module Failure - Different Computer

    I currently have a set up with the FP-1601, (2) FP-TC-120, and a FP-AIO-610 modules.  We are upgrading to a new computer so I copied the vi and the iak files from the current computer.  For some reason when the vi is run on the new computer I get rea

  • Has LC Designer been removed from Acrobat distributions?

    Hi there! I've installed Acrobat XI and could not find LC Designer in its folders. Has it been removed from Acrobat distributions? Is it only availabe as a LiveCycle module now? Thank you for any info. Marcos

  • ML has downloaded but not installed.

    ML had downloaded but not installed. . On the launchpad it says installing, but on the app store it says waiting. Its been doing this for 3 hours. what do i do?