Mapping Database using Oracle Toplink 10.1.3.3.0

Hi everybody, I'd like to use Oracle TopLink to do mapping my database and here is the database's script
1F.sql
==========
@@case1F.typ
@@case1F.tab
@@case1F.con
1F.typ
==========
CREATE TYPE TCUSTOMER
CREATE TYPE TMEMORY
CREATE TYPE TPHONE
CREATE TYPE TNAME
CREATE TYPE TMOTHERBOARD
CREATE TYPE TADDRESS
PROMPT Creating Object Type 'TNAME'
CREATE OR REPLACE TYPE TNAME AS OBJECT
(FIRST VARCHAR2(240)
,LAST VARCHAR2(240)
SHOW ERROR
PROMPT Creating Object Type 'TMOTHERBOARD'
CREATE OR REPLACE TYPE TMOTHERBOARD AS OBJECT
(KODE VARCHAR2(240)
,SERIES VARCHAR2(240)
,MERK VARCHAR2(240)
,VGA VARCHAR2(240)
SHOW ERROR
PROMPT Creating Object Type 'TMEMORY'
CREATE OR REPLACE TYPE TMEMORY AS OBJECT
(KODE VARCHAR2(240)
,MERK VARCHAR2(240)
,TIPE VARCHAR2(240)
,UKURAN VARCHAR2(240)
SHOW ERROR
PROMPT Creating Object Type 'TADDRESS'
CREATE OR REPLACE TYPE TADDRESS AS OBJECT
(STREET VARCHAR2(240)
,CITY VARCHAR2(240)
SHOW ERROR
PROMPT Creating Object Type 'TPHONE'
CREATE OR REPLACE TYPE TPHONE AS OBJECT
(CODE VARCHAR2(240)
,DIGIT VARCHAR2(240)
SHOW ERROR
PROMPT Creating Object Type 'TCUSTOMER'
CREATE OR REPLACE TYPE TCUSTOMER AS OBJECT
(USERNAME VARCHAR2(240)
,NAME TNAME
,ADDRESS TADDRESS
,PHONE TPHONE
,TYPE NUMERIC(1)
,EMAIL VARCHAR2(240)
SHOW ERROR
1F.tab
==========
PROMPT Creating Table 'DTRANSAKSI'
CREATE TABLE DTRANSAKSI
(CPU_KODBERG VARCHAR2(6) NOT NULL
,HTI_NONOTA VARCHAR2(4) NOT NULL
,JMLBRG NUMERIC
PROMPT Creating Table 'CPU'
CREATE TABLE CPU
(KODBERG VARCHAR2(6) NOT NULL
,NAMA VARCHAR2(240)
,MEMORY REF TMEMORY
,MOTHERBOARD REF TMOTHERBOARD
,HARGA NUMERIC
,KET CLOB
,VERSI VARCHAR2(240)
PROMPT Creating Table 'HTRANSAKSI'
CREATE TABLE HTRANSAKSI
(NONOTA VARCHAR2(4) NOT NULL
,USERNAME REF TCUSTOMER
,TGLTRANS DATE
,VERSI VARCHAR2(240)
,CONSTRAINT HTI_PK PRIMARY KEY
(NONOTA)
ORGANIZATION INDEX
PROMPT Creating Table 'MEMORY'
CREATE TABLE MEMORY OF TMEMORY
(KODE NOT NULL
PROMPT Creating Table 'MOTHERBOARD'
CREATE TABLE MOTHERBOARD OF TMOTHERBOARD
(KODE NOT NULL
PROMPT Creating Table 'CUSTOMER'
CREATE TABLE CUSTOMER OF TCUSTOMER
ALTER TABLE CPU
ADD (SCOPE FOR (MEMORY) IS MEMORY)
ALTER TABLE CPU
ADD (SCOPE FOR (MOTHERBOARD) IS MOTHERBOARD)
ALTER TABLE HTRANSAKSI
ADD (SCOPE FOR (USERNAME) IS CUSTOMER)
1F.conn
===================
PROMPT Creating Primary Key on 'DTRANSAKSI'
ALTER TABLE DTRANSAKSI
ADD (CONSTRAINT DTI_PK PRIMARY KEY
(HTI_NONOTA
,CPU_KODBERG))
PROMPT Creating Primary Key on 'CPU'
ALTER TABLE CPU
ADD (CONSTRAINT CPU_PK PRIMARY KEY
(KODBERG))
PROMPT Creating Foreign Key on 'DTRANSAKSI'
ALTER TABLE DTRANSAKSI ADD (CONSTRAINT
DTI_HTI_FK FOREIGN KEY
(HTI_NONOTA) REFERENCES HTRANSAKSI
(NONOTA))
PROMPT Creating Foreign Key on 'DTRANSAKSI'
ALTER TABLE DTRANSAKSI ADD (CONSTRAINT
DTI_CPU_FK FOREIGN KEY
(CPU_KODBERG) REFERENCES CPU
(KODBERG))
I found an error in ORACLE TOPLINK while adding table CUSTOMER, MOTHERBOARD and MEMORY from database to workbench. Any idea how to solve that error?
And other questions:
1. Does Toplink support inheritance and aggregation object table modelling? If it doesn't, what should I do?
2. Is there any example or tutorial using Toplink Foundation Library?
Thanks a lot.

What error do you get in the MW?
TopLink does support object-relational data-types, but the Mapping Workbench does not have support for object-relational data-types, so you may need to define your mappings through the TopLink Descriptor and Mapping Java code API. There is a section on object-relational data-type mappings in the TopLink User Guide.
-- James : http://www.eclipselink.org

Similar Messages

  • How to verify OC4J uses Oracle Toplink 10.x and not Toplink Essentials

    Hi,
    We dont want to use the default JPA provider "Toplink *Essentials*" that comes with OC4J. Rather we want to use Oracle Toplink 10.x
    I downloaded [Oracle Toplink 10.x|http://www.oracle.com/technology/software/products/ias/htdocs/1013topsoft.html] and followed the installation instructions:- http://www.oracle.com/technology/products/ias/toplink/doc/10131/install/install.html#CHDBBIFB
    When i deploy my EJB 3.0 appliation and invoke a JPA Entity, i can see the server log:- NOTIFICATION TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
    Do i have to do any other configuration/setting to ensure that i use Oracle Toplink and not Toplink Essentials in OC4J?
    Thanks in Advance,
    Prashant Tejura
    Edited by: user1186295 on May 26, 2009 10:33 AM

    rashant,
    Hi, there are currently the following providers to choose from - you may want to consult your rep for any details on moving from 10.1.3.4 to 10.1.3.5.
    1) TopLink or EclipseLink using EclipseLink JPA - the RI for JPA for WebLogic, OC4J and GlassFish
    - EclipseLink JPA is focus of all current JPA development as part of EclipseLink and TopLink
    2) Another open-source JPA implementation like OpenJPA or Hibernate
    Deprecated:
    3) TopLink using TopLink JPA - replaced by (1) TopLink using EclipseLink JPA
    4) TopLink using TopLink Essentials JPA - replaced by (1) TopLink using EclipseLink JPA
    Changes to server.xml as follows:
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Modify_server.xml
    <shared-library name="oracle.persistence" version="1.0" library-compatible="true">
              <code-source path="../../../eclipselink/eclipselink.jar"/>
              <code-source path="../../../eclipselink/javax.persistence_*.jar"/>
              <import-shared-library name="oracle.jdbc"/>
         </shared-library>
    Changes to persistence.xml as follows: (container-managed JTA datasource)
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Persistence.xml
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="example" transaction-type="JTA">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>jdbc/OracleDS</jta-data-source>
    <class>org.eclipse.persistence.example.jpa.server.business.Cell</class>
    <properties>
    <property name="eclipselink.target-server" value="OC4J"/>
    <property name="eclipselink.logging.level" value="FINEST"/>
    </properties>
    </persistence-unit>
    </persistence>
    You should see output similar to the following in your server log:
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Console_Output
    [EL Finest]: 2009-02-26 14:04:34.464--ServerSession(8634980)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Begin deploying Persistence Unit example; state Predeployed; factoryCount 1
    [EL Info]: 2009-02-26 14:04:34.542--ServerSession(8634980)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--EclipseLink, version: Eclipse Persistence Services - ***
    [EL Fine]: 2009-02-26 14:04:35.213--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Detected Vendor platform: org.eclipse.persistence.platform.database.oracle.Oracle10Platform
    [EL Config]: 2009-02-26 14:04:35.26--ServerSession(8634980)--Connection(5230779)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Connected: jdbc:oracle:thin:@//1y.yyy.yy.yy:1521/ORCL
         User: SCOTT
         Database: Oracle Version: Oracle Database 11g Release 11.1.0.0.0 - Production
         Driver: Oracle JDBC driver Version: 10.1.0.5.0
    [EL Finest]: 2009-02-26 14:04:35.385--UnitOfWork(5746770)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--PERSIST operation called on: org.eclipse.persistence.example.jpa.server.business.Cell@9107088( id: null state: null left: null right: null parent: null references: null).
    [EL Fine]: 2009-02-26 14:04:35.807--ClientSession(5748500)--Connection(6653899)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--INSERT INTO EL_CELL (ID, STATE, TSEQ, RIGHT_ID) VALUES (?, ?, ?, ?)
         bind => [551, null, null, null]
    thank you
    /michael
    www.eclipselink.org

  • Problem in connecting to database using oracle jdbc thin driver

    hi
    i am trying to connect to a database using oracle thin driver.
    i am getting following error:
    java.sql.sqlexception:Io exception: the network adapter could not establish the connection
    Io exception: the network adapter could not establish the connection
    the connection string has the property of using a dedicated server
    for this reason i have put USE_DEDICATED_SERVER=ON in sqlnet.ora file...
    we did not face this problem while connecting to other databases which do not have the property of dedicated server in their connection string in tnsnames.ora file.
    please suggest a solution for this.
    thanks and regards,
    asif

    If you are using the thin driver, sqlnet.ora does not come into play. None of Oracle networking does. That is one of the great things about using the thin driver, no need to have the client installed.
    That error is due to incorrect connection info you are supplying or the machine you are connection from can't ping the machine it is trying to connect to.

  • To create standby database using oracle 10g standared edition

    my producation database is oracle 10G standard edition .Can i implement a oracle dataguard or standby database using standard edition licenses.if standby database is possiable in standard edition .what are the steps for creating a standby database using oracle 10g standard edition.

    General answer is http://download.oracle.com/docs/cd/B19306_01/license.102/b14199/editions.htm#BABJICBB.
    For Data Guard you cannot :
    - use instance parameters to automatically send archived redo logs
    - use instance parameters to resolve archived redo logs gaps
    - create a logical standby
    - use SQL statements to do switchover / failover
    - use Data Guard Broker.

  • How to integrate android application with oracle database using oracle mobile database server.

    Hi,
    I developed one web application using oracle database. I want to implement same web application in android. My problem is how to integrate android application with existing oracle database using oracle database mobile server. Can u please guide me how to install oracle database mobile server and how to integrate android app with existing oracle database..
    Thank you.

    In the Database Mobile Doc set there is an entire book that covers the Installation of Oracle Database Mobile Server.   Chap 4 of that book contains screen shots and all kinds of information that will help guide you through the installation.   We also have a doc on the different mobile clients.  Chap 2 of that guide covers installs and integration of an android app. 
    thanks
    mike

  • Using oracle.toplink.sessions.Connector issues

    Hi,
    Since we are integrating with others,should use database connections from other app's connection pool.I use one class to implement oracle.toplink.sessions.Connector,in connect method,get connection from other app's connection pool.It works well.But I want to free connection to connection pool when one API is finished.How can I do this?I checked there is no such API.please help

    The issue is with your select method.
    When you read against the session in TopLink you are reading the object directly from the shared object cache. These objects must be treated as read-only, if you modify them you are modifying what TopLink considers to be the committed state of the object, so when you register it and update it, TopLink does not detect any changes and does not make any updates as you already changed the original cached version of the object. If you wish to modify an object you first need to register or read it through a UnitOfWork, or clone/serialize the object yourself if you wish to edit detached objects and then merge them back.
    Example: (if you used a unit of work in your select it would clone the object)
    public Employees select(int Employee) {
    Session session = server.acquireClientSession();
    UnitOfWork uow = session.acquireUnitOfWork();
    return read(uow, Employee);
    Note, that if you then modified the object locally in the same transaction/unit of work, you would just be able to call commit on that same unit of work, and not require an update method.

  • Unable to connect to Oracle Database using Oracle Sql developer 2.1.1.64

    Hi Everyone,
    I am searching for some help regarding my problem with Oracle connectivity. I have installed Oracle 11g release 2 on my Windows XP Professional Laptop. For a few days after installation i could connect to the Oracle database with the SYSTEM account using Oracle SQL developer ( installed on the same Laptop) but now i am unable to do so.It gives me this annoying message:
    An error was encountered performing the required operation  Got a minus one from read call .Vendor code 0
    However i am able to connect using Sql Plus by supplying the username SYSTEM and the corresponding password.
    My TNSNAMES .ora file is as follows:
    ORACLE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST =localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORACLE)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    My Listener.ora file is as follows:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:D:\app\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    (SID_DESC =
    (GLOBAL_DBNAME = Oracle)
    (ORACLE_HOME = D:\app\product\11.2.0\dbhome_1)
    (SID_NAME = Oracle)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (PROTOCOL_STACK =
    (PRESENTATION = GIOP)
    (SESSION = RAW)
    ADR_BASE_LISTENER = D:\app
    My Sqlnet.ora file is as follows:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    I am new to Oracle and so i need someone in this forum who can help me resolve this problem. Also i even tried connecting to the database using Toad 10.5.0.41. It give me the following error:
    ORA 12537 : TNS Connection closed
    Thanks for your patience and help in advance.
    ---Prashant

    Hello Irian and Sue,
    I can connect to the Oracle database using SQL Plus. Now when i TNSPING ORACLE from command line i get the following message :
    Used parameter files:
    D:\app\product\11.2.0\dbhome_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =localhost
    *)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ORACLE)))*
    TNS-12537: TNS:connection closed
    Thanks for your response to my initial post.Do u have any other methods to resolve this?

  • Error while creating physical standby database using Oracle Grid 10.2.0.5

    Hi All,
    I am setting up data guard using oracle grid.
    Primary database version: - 10.2.0.4
    Standby database version: - 10.2.0.4
    Primary OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
    Standby OS Red Hat Enterprise Linux AS release 4 (Nahant Update 8)2.6.9
    I am creating physical standby database using EM. But it is getting failed with error message in sqlnet.ora file
    Fatal NI connect error 12533, connecting to:
    (DESCRIPTION=(ADDRESS_LIST=)(CONNECT_DATA=(SERVICE_NAME=INPRDSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=indb50.oii.com)(USER=oracle))))
      VERSION INFORMATION:
            TNS for Linux: Version 10.2.0.4.0 - Production
            TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.4.0 - Production
      Time: 17-AUG-2010 02:40:07
      Tracing not turned on.
      Tns error struct:
        ns main err code: 12533
        TNS-12533: TNS:illegal ADDRESS parameters
        ns secondary err code: 0
        nt main err code: 0
        nt secondary err code: 0As we can see, address_list is empty.
    Can anyone suggest what could be the reason behind this?

    Dear user13295317,
    Here is the error explanation;
    Oracle Error :: TNS-12533
    TNS:illegal ADDRESS parameters
    Cause
    An illegal set of protocol adapter parameters was specified.
    In some cases, this error is returned when a connection cannot be made to the protocol transport.
    Action
    Verify that the destination can be reached using the specified protocol.
    Check the parameters within the ADDRESS section of TNSNAMES.ORA.
    Legal ADDRESS parameter formats may be found in the Oracle operating system specific documentation for your platform.
    Protocols that resolve names at the transport layer (such as DECnet object names) are vulnerable to this error if not properly configured or names are misspelled.Hope That Helps.
    Ogan

  • Cannot connect to database using Oracle Forms 10g

    hi,
    I had installed Oracle 10g database and Oracle Forms 10g on Windows Vista Home Basic. However, I was unable to connect to
    the database in Oracle Form using scott/scott for database "orcl", with the following error message:
    ORA-00604: error occured at recursive SQL level 1
    ORA-01009: missing mandatory parameter
    However, I could access to the database using this set of username and password. Am I missing something? Thanks.

    Hi,
         After a successful installation of forms 10g in vista, I'm about to run OPatch Universal Installer for the patch 7047034
    in order to fix the form bugs. However, I cannot run the command "opatch apply C:\oracle_form\Patch26_Rel_10105\7047034"
    with the error "The Oracle Home c:\devsuitehome_1 is not registered with the Central Inventory.". Then I try to create a
    oraInst.loc file, but not much change still. The situation is that oracle 10g is installed before oracle developer suite
    10g, and when I try to set oracle_home to oracle 10g's path ("C:\oracle\product\10.2.0\db_1") and run "opatch lsinventory",
    it returns the correct result; when oracle developer suite 10g's path ("c:\devsuitehome_1") is set as the oracle_home,
    the same command would return a different result as "LsInventory: OPatch Exception while accessing O2O".
         I've verified through Oracle Universal Installer that the Central Inventory has included both as oracle_home (oracle 10g
    and oracle developer suite 10g). I'm very confused now, though it seems that the problem could be solved by registering the
    Central Inventory with oraacle developer suite 10g's path. Thanks.

  • Not able to connect to database using Oracle ODBC Driver

    Hi,
    I have installed Oracle client on a system. there are 2 homes installed. When I check the ODBC administrator, I see that only one ODBC driver is present. There are Net 8 services configured in both the homes.
    When I try to connect to a database with the services configured in the second home using the ODBC driver, I am getting an error that the TNS name could not be resolved.
    How can I use the ODBC driver to connect to the databases using services defined in the second home?
    The name of the ODBC driver is 'Oracle in <firsthomename>
    Thanks & Regards

    Hi,
    Thanks for the help.
    I tried this, but it doesn't work. I'm still getting the error.
    Now I am not able to create a DSN when I set the ORACLE_PATH to the second home. It says 'the setup routines for the Oracle in ora1 ODBC Driver could not be loaded due to system error code 998.'
    Any other solution?
    Thanks in advance & Regards
    Anuja

  • How to connect database using oracle SQL developer

    Hello
    I am newbie in EBS R12
    I downloaded Oracle SQL Developer
    and create new database conenction
    Connection name: ebs demo db connection
    username:
    password:
    Role: Default
    Connection type: Basic
    Hostname: ebstailin.demo.com
    Port: 1521
    SID: clone
    when i try this there is an error
    Status: Failure-Test failed: lo exception: The Network Adapter could not establish the connection
    no idea about this
    but i used the apps/apps as username and password
    please help
    thanks
    Edited by: cheesewizz on Jul 16, 2010 11:35 PM

    Hello
    Thanks for your reply
    I tried to connect and here is the result: see below
    [oracle@ebstailin 11.1.0]$ sqlplus / as sysdba
    SQL*Plus: Release 11.1.0.7.0 - Production on Sat Jul 17 15:35:31 2010
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> CONNECT apps/apps
    Connected.
    SQL>
    But still cannot connect using ORACLE SQL Developer
    thanks

  • Cannot connect to Oracle express database using Oracle forms 10 on win XP

    Hello All,
    I have installed Oracle Developer Suite 10g along with Oracle Express edition database on Windows XP home edition. (Do get successful installation message)
    When i open up Forms builder and try to use connect option- it comes up with user name, password and database dialogue box?
    If I enter user name and password I choose while installation express edition database it comes up with the following error:
    "ORA-12560:TNS:protocol adapter error"
    Have checked the services and they all seem to be running, have tried deinstalling/installing by removing registry values but still no luck.
    In fact what ever I type the error message remains the same.
    On the other hand I can access Express edition database using user name and password I choose during its installation.
    Can any one please reply me what details i need to enter here? Is it same as I set up during express edition database installation? What about database?
    Please help. As I am struggling big time.
    Thanks in advance.

    You may be having the same problem as this guy:
    Forms 6i - ora-012203 tns:unable to connect to the destination
    You need to start SQL Plus and see if you can log in, too, to make sure there are not other problems.
    What are you using for the Database name (the third entry following username and password)?

  • Cant connect to Oracle database using oracle db client

    Hi All,
    I recently created a virtual machine running windows server 2008 on my windows 7 host. Oracle database 11g is already installed on host OS(windows 7) and I have installed oracle 11g client on the guest OS(windows server 2008) and trying to connect to oracle database from remote server using oracle client but getting this error:
    ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATAI am trying to connect using oracle client as below:
    C:\Users\Administrator>SET ORACLE_SID = HR84DEV
    C:\Users\Administrator>SQLPLUS /NOLOG
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 10 06:16:34 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> CONNECT SYSADM/[email protected]
    ERROR:
    ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA
    I have created database with name - HR84DEV
    HOST ip address is - 192.168.56.1
    I googled this error and as most of resources/blogs talked about having correct entry on listner.ora and tnsnames.ora file, I did the changes on both of these files accordingly.
    PFB the cotent of both of these files:
    tnsnames.ora
    # tnsnames.ora Network Configuration File: C:\MyApps\Oracle\product\11.2.0\dbhome_\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    HR84DEV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = HR84DEV)
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    listner.ora
    # listener.ora Network Configuration File: C:\MyApps\Oracle\product\11.2.0\dbhome_\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\MyApps\Oracle\product\11.2.0\dbhome_)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\MyApps\Oracle\product\11.2.0\dbhome_\bin\oraclr11.dll")
    (SID_DESC =
    (SID_NAME = HR84DEV)
    (ORACLE_HOME = C:\MyApps\Oracle\product\11.2.0\dbhome_)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\MyApps\Oracle\product\11.2.0\dbhome_\bin\oraclr11.dll")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
    ADR_BASE_LISTENER = C:\MyApps\Oracle
    Please not that I dont have any problem in connect to database locally.

    Thanks Nicolas,
    Actually, there was a problem with my oracle client installation. I uninstalled it and then installed back again but still, even after following your instructions I get some error.
    Here what I did:
    Created tnsnames.ora file as below:
    HR84DEV =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = HR84DEV)
    Placed it under appropriate directory and then checked the connection with database using the command shown below:
    C:\Users\Administrator>tnsping HR84DEV
    TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 10-FEB-2
    012 08:42:03
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    C:\MyApps\Administrator\product\11.2.0\client_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = 192.168.56.1)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = HR84DEV)))
    OK (20 msec)
    Then tried to connect to database as below:
    C:\Users\Administrator>SET ORACLE_SID=HR84DEV
    C:\Users\Administrator>SQLPLUS /NOLOG
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 10 08:25:56 2012
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> CONNECT SYSADM/SYSADM@HR84DEV
    ERROR:
    ORA-28547: connection to server failed, probable Oracle Net admin error
    But still getting error.
    I Googled this error and tried to figure out what the problem is and came across the possible cause which is because I haven't specify that the service should run as a user who is in domain admin group.
    well, I am not really sure about this and dont know what user name and password I should enter in OracleserviceHR84DEV-properties-log on-this account.
    do I really need to set this?

  • 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.

  • Can't mount database using Oracle 8i on linux

    I am not able to mount an Oracle database.
    I am new to Oracle and am working on an Oracle8i installation on an
    Intel Linux Suse 6.3 platform. I am using only one harddrive and am
    not using the 4 mount points as mentioned for efficiecy purposes in
    the Oracle documentation..I am using the installation cd from Oracle8i
    for Linux Starter Kit by Oracle Press. If anyone has this book they
    can refer to pages 41-44 for the examples I followed.
    As sysdba in sqplplus using the STARTUP command I can not Mount the
    database -step 2 of the 3 stage process (Start, Mount and Open the
    database) of opening an Oracle database.
    I show the errors I encountered when I did the first 2 of the 3 steps
    in the step-by-step mode (STARTUP NOMOUNT pfile=, ALTER DATABASE
    MOUNT) in the sqlplus session and alert log respectively with startup
    nomount and alter database mount for this sqlplus session.
    Additionally I show the init.ora file lines referring to control file
    which seem to be referred to by the sqlplus error messages and the
    alert.log file. Perhaps some can give me some advice as what I can try
    to fix this problem.
    At the end of this e-mail I added several questions I had in regard to the control
    files. Any help is appreciated.
    Well, here are the sqlplus session results and its alert.log file:
    Oracle sqlplus session usr/oracle as sysdba
    oracle@CHESTNUT:~ > sqlplus
    SQL*Plus: Release 8.1.6.0.0 - Production on Mon Mar 19 20:47:49 2001
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter user-name: usr/oracle as sysdba
    Connected to an idle instance.
    SQL> startup nomount pfile=/usr/oracle/dbs/init.ora ;
    ORACLE instance started.
    Total System Global Area 24989680 bytes
    Fixed Size 69616 bytes
    Variable Size 24637440 bytes
    Database Buffers 204800 bytes
    Redo Buffers 77824 bytes
    SQL> alter database mount ;
    alter database mount
    ERROR at line 1:
    ORA-00205: error in identifying controlfile, check alert log for more
    info
    SQL> shutdown immediate ;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> exit
    Disconnected
    oracle@CHESTNUT:~ >
    alert.log file for above session
    Mon Mar 19 20:48:38 2001
    Starting ORACLE instance (normal)
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    LICENSE_MAX_USERS = 0
    Starting up ORACLE RDBMS Version: 8.1.6.1.0.
    System parameters with non-default values:
    processes = 50
    shared_pool_size = 3500000
    control_files = ora_control1, ora_control2
    db_block_buffers = 100
    log_buffer = 32768
    log_checkpoint_interval = 10000
    db_files = 80
    db_file_multiblock_read_count= 8
    global_names = TRUE
    db_name = DEFAULT
    parallel_max_servers = 5
    max_dump_file_size = 10240
    PMON started with pid=2
    Load Indicator not supported by OS !
    DBW0 started with pid=3
    LGWR started with pid=4
    CKPT started with pid=5
    SMON started with pid=6
    RECO started with pid=7
    Mon Mar 19 20:48:58 2001
    alter database mount
    Mon Mar 19 20:48:58 2001
    ORA-00202: controlfile: 'ora_control1'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    Mon Mar 19 20:49:01 2001
    ORA-205 signalled during: alter database mount
    Mon Mar 19 20:49:12 2001
    Shutting down instance (immediate)
    License high water mark = 1
    Mon Mar 19 20:49:12 2001
    ALTER DATABASE CLOSE NORMAL
    ORA-1507 signalled during: ALTER DATABASE CLOSE NORMAL...
    archiving is disabled
    init.ora control files
    # define two control files by default
    control_files = (ora_control1, ora_control2)
    Here are my control file questions:
    I need to know several points:
    1) What are control files susposed to
    contain and how would I recognize them?
    I used the
    unix find /usr/oracle \*ctl* -print
    command to locate files with a ctl extension.
    This resulted in about a dozen such files in
    different directories as shown below:
    ./bin/lsnrctl
    ./bin/extractlib
    ./bin/agtctl
    ./bin/oidctl
    ./bin/lsnrctl0
    ./bin/agtctlO
    ./rdbms/demo/ulcase1.ctl
    ./rdbms/demo/ulcase10.ctl
    ./rdbms/demo/ulcase2.ctl
    ./rdbms/demo/ulcase3.ctl
    ./rdbms/demo/ulcase4.ctl
    ./rdbms/demo/ulcase5.ctl
    ./rdbms/demo/ulcase6.ctl
    ./rdbms/demo/ulcase7.ctl
    ./rdbms/demo/ulcase8.ctl
    ./rdbms/demo/ulcase9.ctl
    ./ldap/load/dn.ctl
    ./ldap/load/attr_store.ctl
    ./ord/ts/demo/tsquick/tsquick.ctl
    ./ord/ts/demo/usageutl/utildat.ctl
    ./ord/ts/demo/usage/stockdat.ctl
    ./ord/ts/demo/usage/stockinc.ctl
    ./ord/ts/demo/retrofit/sales.ctl
    ./ord/ts/demo/retrofit/sales2.ctl
    ./ord/ts/demo/applet/indexdemo.ctl
    ./javavm/admin/libjox8com_sun_jndi_ldap_ctl.so
    ./md/demo/examples/migctl.h
    ./md/demo/examples/migctl.c
    2) On page 100 in the book Oracle 8i A Beginners's
    by Oracle Press mention is made of a
    CREATE CONTROLFILE command that can under
    circumstances be used to re-create a control-file.
    but that is all that is said about it. Perhaps
    you might know something more about it.
    3) Would you recommend any good text for
    Oracle DBA's, especially for the problem of the sort
    that I am encountering?
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by ():
    I am not able to mount an Oracle database.<HR></BLOCKQUOTE>
    Hi ()
    My problem is accessing the database with sqlplus system/manager @oralin, on page 55 of the Linux starter kit. Do you notice the space here, between system/manager.. and.. @oralin. I think it needs to be there.
    Is your database named Chestnut?
    And for Startup, why are you using init.ora? the book mentions initoralin.ora on page 43.
    Your configurations are different than recommended in the book. I'm not sure if any of this helps, but maybe you can help me. When I try sqlplus system/manager @oralin, the response is: can't connect to oralin.sql.
    According to the book, I need to use @oralin at the end of the command in order to see if I have properly configured the server for MTS, a multithreaded server.
    Any ideas? I hope I can help further.
    gilles56

Maybe you are looking for

  • Scheduling agmt with reference to quotation

    Hi Gurus while creating the scheduling agmt with reference to quotation ,all the data is flowing but the material ordered quantity is not flowing can i know where i went wrong regards rajesh

  • JSF Datatable - Any difference with JSF1.1 and JSF 1.2

    In my project there are lot of Datatables, which retrieve data from the database and display it to the user. For each datatable, the columns are not fixed. I want to create some kind of component that can be reusable. It is basically a JSF portlet. N

  • Thumbnails in Named People Section Do Not Stack

    I started to assign names to people in one folder in my catalogue. After assigning all the photos of Fred, there is a single thumbnail in the Named People section with a number in the bottom right corner indicating how many images of Fred were found

  • Photoshop Elements 9 brushes all messed up again

    I am Not on the pencil tool that has nothing to do with it. Resetting my photoshop settings completely did not help. Thank you very much. Normally when I'm using photoshop with my tablet my brush preview is shaped like a sideways diamond so basically

  • Deployment under Jonas

    Hi everyone Few days ago, I needed to deploy a webapp under Jonas server. Creator not proposing by default this feature I developped it. Lines below describe the realized work. Moreover to reuse this equipment I recorded my project in a template whic