How to Connect Oracle Database 10g Express Edition ?

From example
http://www.oracle.com/technology/obe/hol08/dotnet/getstarted-c/getstarted_c_otn.htm
using Oracle.DataAccess.Client; // ODP.NET Oracle managed provider
using Oracle.DataAccess.Types;
string oradb = "Data Source=ORCL;User Id=hr;Password=hr;";
OracleConnection conn = new OracleConnection(oradb); // C#
conn.Open(); <== Connect Error
Error Message "ORA-12154: TNS:could not resolve the connect identifier specified"
I used
Visual Studio 2005
Oracle Database 10g Express Edition
setup "Oracle Developer Tools for Visual Studio .NET with ODAC 10.2.0.2.21"
Best Regards,
Edited by: user1949694 on 8 ก.ย. 2552, 9:20 น.

I search "tnsnames.ora" in my computer. I found 3 file
1. C:\oraclexe\app\product\10.2.0\server\hs\admin\tnsnames.ora
2. C:\oraclexe\app\product\10.2.0\server\NETWORK\ADMIN\tnsnames
3. C"\oraclexe\app/product\10.2.0\server\NETWORK\ADMIN\SAMPLE\tnsnames
How to entry in your tnsnames.ora file File1, File2, File3
How to called "ORCL"?
Please Help Me Step by Step
Thank You.
: )

Similar Messages

  • How To Uninstall Oracle Database 10g Express Edition - SOLVED

    Hi,
    Can someone please let me know how to uninstall this as I don't seem to be able to see an Oracle Installer app by where I can uninstall?
    Is it straight forward - are there some scripts I can run?
    Thanks.
    Tony.
    Solved
    refer to: http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm#CIHDDHJD
    Message was edited by:
    Tony F.
    Message was edited by:
    Tony F.

    I search "tnsnames.ora" in my computer. I found 3 file
    1. C:\oraclexe\app\product\10.2.0\server\hs\admin\tnsnames.ora
    2. C:\oraclexe\app\product\10.2.0\server\NETWORK\ADMIN\tnsnames
    3. C"\oraclexe\app/product\10.2.0\server\NETWORK\ADMIN\SAMPLE\tnsnames
    How to entry in your tnsnames.ora file File1, File2, File3
    How to called "ORCL"?
    Please Help Me Step by Step
    Thank You.
    : )

  • Connecting form 6i  to oracle database 10G express edition

    I am unable to connect forms 6i to oracle database 10G express edition.
    form builder closes without any message.

    Hi, i was try that solution, but have some problem.
    1) I have stopped other database (Oracle 8i, OracleService + Listener), none Oracle service was running.
    2) I was install Oracle XE Univ.
    3) Run sqlplus from XE
    "D:\oraclexe\app\oracle\product\10.2.0\server\BIN>sqlplus system/PASSWORD@xe as sysdba"
    4) Shutdown immediate - OK
    5) Startup mount - failed
    SQL> startup mount
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    6) I was check registry "hkey_local_machine\software\oracle" and delete key "local" (walue was set to connection to 8i database).
    7) I was checking status of Listener from XE (after shutdown).
    "Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=jacek)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully"
    Have anyone suggestion how to connect "directly" to XE (without @CONNECTION string) ?
    If source of problem can be having DB 8i installed on same machine ?
    BBye.

  • Connecting to Oracle Database 10g Express Edition

    Hello guys,
    Im running Windows XP SP2.
    Ive just installed Oracle SQL Developer and Oracle Database 10g Express Edition.
    Im trying to connect via SQL Developer with:
    hr/hr (yes, ive unlocked this user)
    localhost:1521
    sid:orcl
    but then it says:
    "Status: Failure -Listener refused the connection with the following error:ORC-12505, TNS:listener does not currently know of SID given in connect descript..."
    i guess its smth wrong with my SID.
    Im total newbie to oracle, keep that in mind.
    Please help!

    The default SID for Oracle Database 10g Express Edition is XE.

  • Oracle Database 10g Express Edition How to change the prot 8080 ????

    Hello I have installed Oracle Database 10g Express Edition
    it listen to port 8080 how can I change it to prot i want ?
    Thanks

    Above post addressed you query. But i suggest Book Mark following doc,it will address most of the queries regarding XE Database
    Oracle Database Express Edition 2 Day DBA

  • Problem upgrading Apex 2.1 to 3.2.1 in Oracle Database 10g Express Edition

    G'Day Apex gurus,
    I installed Oracle Database 10g Express edition in my Windows XP PC which comes with Apex 2.1 with no problems. Then I wanted to upgrade Apex 2.1 to 3.2.1 (Currently Apex download in OTN) following the document below:
    http://www.oracle.com/technology/products/database/application_express/html/3.1_and_xe.html
    I went to the steps:
    @apexins SYSAUX SYSAUX TEMP /i/
    Then to change the password for the admin account run apxchpwd.sql and when prompted enter a password for the ADMIN account.
    @apxchpwd
    with not problems
    Then I connected to SQL*Plus as SYS by:
    sqlplus /nolog
    CONNECT SYS as SYSDBA
    Enter password: xxxxxxxxxxx
    but when I tried to run:
    @APEX_HOME/apex/apxldimg.sql APEX_HOME
    where APEX_HOME is Apex3.2.1 in my case
    SQL> @Apex3.2.1/apex/apxldimg.sql Apex3.2.1 (I get the messages below)
    PL/SQL procedure successfully completed.
    old   1: create directory APEX_IMAGES as '&1/apex/images'
    new   1: create directory APEX_IMAGES as 'Apex3.2.1/apex/images'
    Directory created.
    declare
    *+
    ERROR at line 1:
    ORA-22288: file or LOB operation FILEOPEN failed
    The system cannot find the path specified.
    ORA-06512: at "SYS.DBMS_LOB", line 523
    ORA-06512: at "SYS.XMLTYPE", line 287
    ORA-06512: at line 15
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    Commit complete.
    timing for: Load Images
    Elapsed: 00:00:00.17
    Directory dropped.
    Can anyone help me in how to trouble shout this?
    I tried to continue by following the steps document
    @APEX_HOME/apex/apxxepwd.sql password
    (where password is the password of the Application Express internal ADMIN account)
    but when I tried to login in:
    http://localhost:8080/apex/f?p=4550:1
    when I type the credentials
    system
    system
    systempassword
    nothing happens
    or even If I try:
    http://localhost:8080/apex/f?p=4550:10
    admin
    adminpassword
    nothing happens here too.
    I appreciate any help
    Kind regards
    Carlos

    My database version is 10.2.0.1.0 Oracle express.
    Operating system is Windows Vista.
    I started installing using the following commands.
    @ C:\temp\apex\apexins.sql
    it prompts me for the values of sysaux sysaux temp and c:\temp\apex\images\
    If I supply the value for images the sqlplus window closes after scrolling a lot of info.
    Enroute it also prompts me for a value for 9:
    I don't know what the input shall be.
    Then it again stops at enter value for version:
    I used 3.2.1.0
    The window scrols a while and closes.
    later I changed the password and ran the command.
    @c:\temp\apex\apxldimg.sql c:\temp
    but no success with installation.
    the output is as following.
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Nov 27 18:13:43 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect system/sairam as sysdba;
    Connected.
    SQL> @ c:\temp\apex\apxchpwd
    Enter a value below for the password for the Application Express ADMIN user.
    Enter a password for the ADMIN user []
    Session altered.
    ...changing password for ADMIN
    wwv_flow_security.g_security_group_id := 10;
    ERROR at line 3:
    ORA-06550: line 3, column 5:
    PLS-00201: identifier 'WWV_FLOW_SECURITY.G_SECURITY_GROUP_ID' must be declared
    ORA-06550: line 3, column 5:
    PL/SQL: Statement ignored
    ORA-06550: line 4, column 5:
    PLS-00201: identifier 'WWV_FLOW_SECURITY.G_USER' must be declared
    ORA-06550: line 4, column 5:
    PL/SQL: Statement ignored
    ORA-06550: line 5, column 5:
    PLS-00201: identifier 'WWV_FLOW_SECURITY.G_IMPORT_IN_PROGRESS' must be declared
    ORA-06550: line 5, column 5:
    PL/SQL: Statement ignored
    ORA-06550: line 8, column 23:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 7, column 15:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 13, column 32:
    PLS-00364: loop index variable 'C1' use is invalid
    ORA-06550: line 12, column 9:
    PL/SQL: Statement ignored
    ORA-06550: line 19, column 5:
    PLS-00201: identifier 'WWV_FLOW_SECURITY.G_IMPORT_IN_PROGRESS' must be declared
    ORA-06550: line 19, column 5:
    PL/SQL: Statement ignored
    Commit complete.
    SQL> @c:\temp\apex\apxldimg.sql c:\temp
    PL/SQL procedure successfully completed.
    Directory created.
    if wwv_flow_utilities.db_version_is_at_least('11') then
    ERROR at line 32:
    ORA-06550: line 32, column 25:
    PLS-00302: component 'DB_VERSION_IS_AT_LEAST' must be declared
    ORA-06550: line 32, column 3:
    PL/SQL: Statement ignored
    PL/SQL procedure successfully completed.
    if wwv_flow_utilities.db_version_is_at_least('11') then --11g only
    ERROR at line 16:
    ORA-06550: line 16, column 25:
    PLS-00302: component 'DB_VERSION_IS_AT_LEAST' must be declared
    ORA-06550: line 16, column 3:
    PL/SQL: Statement ignored
    Commit complete.
    timing for: Load Images
    Elapsed: 00:00:00.32
    Directory dropped.
    SQL>
    Does this require XE 11 or anything else.
    This will happen even if I supply as following(closing of sqlplus in the begining).
    @ C:\temp\apex\apexins.sql sysaux sysaux temp c:\temp\apex\images\
    Any help.

  • ORA-12505 on Oracle Database 10g Express Edition: TNS:listener

    In Developer3, trying to connect to Oracle Database 10g Express Edition give me:
    Listener refused the connection with the following error:
    ORA-12505 TNS:listener does not currently know of SID given in connect descriptor
    Vendor code 12505
    Edited by: 873444 on Jul 22, 2011 3:23 AM

    SID given in connect descriptorSo what is the SID you're asking for ... the client in use may not know the XE tnsalias, especially if the client is not running in the same ORACLE_HOME as the database.
    The client needs to know how to get to the database- a `tnsping xe` reveals the path to the current ORACLE_HOME/network/admin/sqlnet.ora file for your environment but that may not be the same ORACLE_HOME used by "developer 3".

  • I have Installed Oracle Database 10g Express Edition so i have Problem.....

    Hello Friends
    I have Installed Oracle Database 10g Express Edition in "Ubuntu Linux" but i have Following Problems:
    1.) After i installed Oracle Database 10g Express Edition i gone to
    "Application" -> "Oracle Database 10g Express Edition" -> "Run SQL Command Line"
    SQL Window has been opened there i have typed "SELECT * FROM tab;" here i got Warning Messg of
    "SP2-0640: Not connected"
    2.) From There i have Again gone to
    "Application" -> "Oracle Database 10g Express Edition" -> "Start Database"
    i got Warning Messg of "Operation Failed. venu is not a Member of DBA Group"
    3.) Finally i want Solution For "How to get Connected in "Oracle Database 10g Express Edition"
    Please Post the Answer As Soon As Possible ...
    From Venu(INDIA)

    Was the oracle-xe configure completed successfully?
    Are the pmon and listener processes running ... set your environment and connect via sqlplus if so. If no processes, the instance needs a startup.
    $ ps -ef |egrep pmon
    oracle ... ora_pmon_XE
    $ ps -ef |egrep lsnr   # can also check the listener status, see below
    oracle ... /usr/.../tnslsnr ...
    $ lsnrctl status
    Endpoints Summary ...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<your hostname>)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=http) ... (PORT=8080)))
    ...In the ORACLE_HOME/bin directory there is a shell script you can source to set up your environment variables for connecting to the database. The full path to the .sh should be revealed by the tnslsnr process, /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
    $ /usr/.../oracle_env.sh
    $ sqlplus /nolog
    SQL> connect system
    Password: ...
    Connected.
    SQL> select status from v$instance;
    STATUS
    OPENThe oracle user created by the configure won't have a known password set. Set it and switch user to the oracle login. If you don't want to muck about with the oracle user, at least add your user to the dba group so that you can connect with the sysdba privilege when needed.
    Edited by: clcarter on Feb 22, 2011 7:06 AM

  • Is Oracle Streams included in Oracle Database 10g Express Edition?

    Hi,
    A short one - is Oracle Streams included in Oracle Database 10g Express Edition?
    Thanks,
    Dag

    Hi, I'm using Oracle Express in my Client System End. I want to know how we can replicate the data from server to client and server to client.
    My Client DB : Oracle Express
    My Server DB : Oracle 10G.
    When the client is connected to the server I want to Syncronize all the Data from Client to Server and Server to Clinet.
    Some of the Experts are telling to use Materilized View or Replication. Which one to use and How to use.?
    It will be helpfull if I get a logic to do this Data Syncronization Process.

  • Oracle Database 10g Express Edition & linux Fedora

    Hi guys
    How are you doing?
    I want to ask about my problem which is I can't access to the home page of Oracle Database 10g Express Edition when I press on "Go To Database Home Page" it's open firefox but does not do any thing by the way I try to write the web page http://127.0.0.1:8080/apex on the address bar but firefox give me an error which is "Unable to connect"
    So please when you know the solution post it here step by step "I'm beginner linux user" .
    My distribution is Fedora 14
    ..Thanks a lot
    Saleh

    Was the configure step completed successfully?i.e., did you run
    /etc/init.d/oracle-xe configure after you installed the rpm? This is similar in XE 10g and 11g beta. You can run this again to reenter your configuration parameters, especially concerning HTTP port, and make sure they have the expected values that way.
    Despite that, you could try to (re)start the service, and see if it comes up without errors.
    /etc/init.d/oracle-xe stop
    /etc/init.d/oracle-xe startIf everything doesn't look too bad, you could have a port conflict with another service using port 8080. In that case, you could reconfigure XE to have its HTTP server listening to a different port.
    -Udo

  • Oracle Database 10g Express Edition

    Does Oracle Database 10g Express Edition allow for more than one database to be created? If yes, then how do I create additional databases?

    Only one database per computer is allowed.
    Read about the XE limitations here

  • [Oracle Database 10g Express Edition] Don't UP

    Hi,
    I've installed the "Oracle Database 10g Express Edition" in my laptop, ThinkPad T60. The installation finish fine or I think that.
    In the event viewer I don't see any error.
    But I cant sing on in SQL/PLUS and I can't go to web config. All services are up.
    The erro when i conect by SQL PLUS are:
    SQL> connect system/PASSWORD as sysdba
    ERROR:
    ORA-12560: TNS:error del adaptador de protocolo
    SQL> connect system/PASSWORD@localhost as sysdba
    ERROR:
    ORA-12514: TNS:el listener no conoce actualmente el servicio solicitado en el
    descriptor de conexión
    I cant found the error becose It happens.
    I uninstall the database, erase the registry of Windows and Install again. But nothing success. I uninstall again, erase the registry, download again from www.oracle.com all continuous one equally.
    Thanks for all!

    SQL*Plus: Release 10.2.0.1.0 - Production on Vie Oct 20 14:47:04 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> connect / as sysdba
    Conectado a una instancia inactiva.
    SQL> connect sys/PASSWORD@localhost as sysdba
    ERROR:
    ORA-12514: TNS:el listener no conoce actualmente el servicio solicitado en el
    descriptor de conexi¾n
    Advertencia: íYa no estß conectado a ORACLE!
    SQL>
    The Services are UP.
    The name of enviourment varible is oracle_sid but the value is?
    In My PC --> Propierties ---> Advanced Option ---> Enviorurment variable
    System or User?
    Thanks an i waiting for your help

  • Oracle Database 10g Express Edition for Linux x86

    Hi all,
    I try to download Oracle Database 10g Express Edition (Universal) at
    http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html
    but I get an error page. So how can I download rpm files?
    Thanks a lot.
    Kind Regards

    Ok, in fact it's very slow..
    Thanks a lot!
    I'm still not able to download.. I'will try until I get it.
    Regards,
    Lavinia

  • Oracle Database 10g Express Edition for Microsoft Windows-port 8080 proble

    I have installed Oracle Database 10g Express Edition for Microsoft Windows, it listen to port 8080, where can I change this port ?
    Thanks

    Inside the database. Search the XE forum for how to do it, it's been done there many times :)
    ~Jer

  • Migration Oracle 9iR2 - Oracle Database 10g Express Edition, please, help

    Good day!
    Now I study examples from tutorial book "Oracle 9iR2 Data Warehousing"
    (translated to Russian) written by Lilian Hobbs, Susan Hilson, Shilpa Lawande. However my Oracle is "Oracle Database 10g Express Edition" and ( as I thought ) for this reason I can't perform these examples.
    Please, help me, if it no hard.
    First example founded on using "Oracle Database Configuration Assistant"
    and "Oracle Enterprise Manager Console". However, I not found them at
    "Oracle Database 10g Express Edition".
    Now I use only "Oracle Application Express" ( and SQL ). Please, tell me,
    if "Application Express" has enough functionality with comparision to
    "Oracle Database Configuration Assistant" and "Oracle Enterprise Manager Console"
    and how I need to do ? (It must, because 10 > 9)
    Second example founded on using SQL. First 80% SQL-commanfs of this executed succesfully. But command "CREATE TABLE easydw.purchases" has error message
    "PARTITIONing is not available." Really, in "2 Day Developer Guide"
    (SQL Reserved Words ) PARTITION is not exist.
    Can I CREATE TABLE easydw.purchases by "Oracle Database 10g Express Edition"
    (with PARTITIONing by other means of SQL )?
    There is full text of this SQL-Command:
    CREATE TABLE easydw.purchases
    (product_id varchar2(8)
    constraint not_null_product_id NOT NULL
    constraint fk_product_id
    REFERENCES product(product_id),
    time_key date
    constraint not_null_time NOT NULL
    constraint fk_time
    REFERENCES time(time_key),
    customer_id varchar2(10)
    constraint not_null_customer_id NOT NULL
    constraint fk_customer_id
    REFERENCES customer(customer_id),
    purchase_date date,
    purchase_time number(4,0),
    purchase_price number(6,2),
    shipping_charge number (5,2),
    today_special_offer varchar2(1)
    constraint special_offer
    CHECK (today_special_offer IN ('Y','N')) )
    PARTITION by RANGE (time_key )
    partition purchases_jan2002
    values less than (TO_DATE('01-02-2002', 'DD-MM-YYYY'))
    pctfree 0 pctused 99
    storage (initial 64k next 16k pctincrease 0)
    tablespace purchases_jan2002,
    partition purchases_feb2002
    values less than (TO_DATE('01-03-2002', 'DD-MM-YYYY'))
    pctfree 0 pctused 99
    storage (initial 64k next 16k pctincrease 0)
    tablespace purchases_feb2002,
    partition purchases_mar2002
    values less than (TO_DATE('01-04-2002', 'DD-MM-YYYY'))
    pctfree 0 pctused 99
    storage (initial 64k next 16k pctincrease 0)
    tablespace purchasee_mar2002 );
    Naturally, I also shall continue try find solution.
    Winni.

    Winni,
    Partitioning is only available with Oracle Enterprise Edition.
    Here is a list of features by edition:
    http://www.oracle.com/database/product_editions.html
    DBCA is not needed with Express edition because you can only have one XE database per server, and all options are pre-configured.
    Enterprise Manager Console is not included with XE - only with the other editions.
    You can get most of the functionality through SQL, Application Express and SQL Developer.

Maybe you are looking for

  • Service order creation using bapi with repair order number

    Hi experts, Pls suggest me a BAPI to create a service order for those repair orders where a PGR has been done(for return delivery type : LR). The plant should be 0260 with storage location wh01 and item category ZRRE Creation of a service order with

  • Lightning to 30-pin Adapter (0.2 m) (A1450) is not recognized by my Iphone 5s!!

    I Just bougt the Lightning to 30-pin adapter (0.2m) (A1450). I'm now connecting the cable (device)  to my Iphone 5s (Ios 7.0.4) without any other device connected to it and I receive the message "This accessory is not supported by this device." When

  • Anyone have good/bad experience with MX02 Mini?

    I'm very interested in how it's working for 1080 24p in FCP & Motion. Is the blue-only calibration and 10 bit worth paying the extra $$ over an Intensity Pro? Also curious about it with AE on Win7 - as with the card, apparently the same device can wo

  • Bonded Warehouse Inventory Differences

    Hello, I set up Scraping and Inventory differences for Bonded Warehouse, Scrapping and Posting of positive differences to customs warehouse using a customs declaration, but for negative values it does not work. Wnen I try to finalize the Posting of I

  • Bad quality after rendering

    Hello guys.. why my video is having a bad quality after rendering? as you can see on this snapshots. the unrendered one looks great and sharp. but after rendering the quality is changing... Ive tried to scaling to sequence but after rendering its goi