Steps to remove entrie Oracle 10gR2 (10.2.0.4) RAC on linux

Hi Gurus,
We have 10gR2 RAC (10.2.0.4) is running on RHEL5.5 on development servers. I would like to set up 11gR2(11.2.0.3) RAC on these development servers. Could you please let me know the steps to cleanup existing 10g RAC on these 2 node RAC.
My existing 10g RAC details are as follows
No of nodes 2
<RDBMS_HOME> for oracle binaries
<ASM_HOME> for AMS binaries
<CLUSTER_HOME> for clusterware home
ASM for storage
Thanks
Masoom

A simple Google search turns up this documentation source: [http://download.oracle.com/docs/cd/B28359_01/rac.111/b28255/votocr.htm#BGBGDHFG|http://download.oracle.com/docs/cd/B28359_01/rac.111/b28255/votocr.htm#BGBGDHFG]
You have to stop the node applications and the CRS stack, then use SRVCTL to change the public IP addresses and OIFCFG to change the private ones. The doc provides detailed steps.

Similar Messages

  • Oracle White Paper- Storage Option for RAC. on Linux

    hi..
    This in reference with White Paper.. Stotage Option for RAC on LINUX. Author- Umadevi Byrappa.
    Which states on page 10: To Use NAS for RAC database file storage select the file system storage option in OUI. or the Clustered file system storage option in DBCA.
    With which i disagree. File storage option of oracle 10g RAC only shows.
    1. Clustered File system.
    2. ASM
    3. Raw Devices.
    When i try to select Cfs and select the shared directory on NFS it says. < Directory_Name> is not a clustered file system or Shared on Both <Server_1> < Server_2>. and at this point of time i m stuck.
    1. I dont want to use OCFS as its not supporting NAS.
    2. Selecting CFS doesnt recognise mounted shared volume as valid storage device option can only store OCRfile and CSS file.
    3. So, I have to use ASM.. with zero padded files..which i dont want to because no other option. ( PART NO. B10766-02 PAGE C-6)
    Also, I would like oracle to provide Back up Recovery Option or Document which tells me how could i Recover Database when i use Zero Padded Files.
    What would be the best Option in the above scenario ?
    I hope by applying patch or with workaround somehow it shows Filesystem ONLY.I'll be the happiest man in this Case.
    Any suggestions and corrections are most welcome. I wish i m wrong.
    Nadeem ( [email protected] )

    NFS isn't a clustered file system at all - by RFC it is an exported file system with access controls
    If your vendor offers an NFS solution over and beyond that - more power to them. However that isn't "NFS"..
    http://www.faqs.org/rfcs/rfc3010.html
    You can use NFS in a clustered server environment (to mount apps, read only data and for synchronous access to files), however it doesn't support the concurrency out of the box for RDBMS transactions - if a vendor is supporting this promise then that is for you to decide.
    However i stand by my statement that NFS is a file system exported across your network and not a full clustered file system.

  • Generic Connectivity -Oracle(10gR2) to MS SQL server - Creating DSN

    Hi,
    I am trying to connect Oracle 10gR2(10.2.0.4.0) on linux x86 to MS Sql Server on Windows XP
    I am referring the Metalink Note 264567.1 and using DataDirect ODBC drivers for the same
    I have a question here
    Do I need to create the System DSN on windows XP or on Oracle (linux server)?
    If it is on linux server, how to I create the System DSN on the Linux?
    Thanks in Advance
    Regards,
    Pk

    Hi,
    You need to create a DSN on the box where the HSODBC (the oracle db) is running, so in this case the Linux box.
    I'd assume there's documentation that comes with the 3rd party odbc driver on how to create a DSN with it. It probably depends on which version of driver manager you're using (pardon my ignorance, I do strictly Windows) so you'd probably want to check the docs for the driver manager. For example, if using unixODBC, the docs are on [their web site|http://www.unixodbc.org/].
    Hope it helps,
    Greg

  • Oracle 10gR2 WebService Call-In & Call-Out via PL/SQL (Step-by-Step Guide)

    Hi Everyone,
    This guide is for those of you who tried to Call-In and Call-Out WebService via Oracle 10gR2 using PL/SQL but failed a couple of times, re-installed a couple of times and retry, got it to work but don't know what made it work scenarios.
    Hope this helps ;-)
    Thanks,
    Henry Wu
    Instructions on how to use Oracle10gR2 Webservice Call-Out feature (Oracle JAX-RPC DII - Dynamic Invocation (DII) APIs)
    PREREQUISITE
    =================================================================
    1. Download Oracle Database 10g Release 2 (10.2.0.1.0) (ZIP, ~655MB)
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201winsoft.html
    http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
    1.1 Choose Enterprise Edition
    2. Download 10.1.3.1 Callout Utility for 10g (R1 +R2) RDBMS (ZIP, ~13MB)
    http://download.oracle.com/technology/sample_code/tech/java/jsp/dbws-callout-utility-10131.zip
    2.1 Extract to C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131
    3. Download OC4J Standalone - Oracle Containers for J2EE (OC4J) 10g Release 3 (10.1.3.3) (ZIP, ~93MB; Pure Java—runs on all certified platforms)
    http://www.oracle.com/technology/software/products/ias/index.html (Download Site)
    http://download.oracle.com/otn/java/oc4j/101330/oc4j_extended_101330.zip
    3.1 Extract to C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
    STEP-BY-STEP PROCEDURES
    =================================================================
    1. Prepare the database
    1.1 Connect to SYS account (or any account that can connect as SYSDBA)
    1.2 alter system set shared_pool_size=96M scope=both
    1.3 alter system set java_pool_size=80M scope=both
    1.4 ALTER USER SCOTT ACCOUNT UNLOCK;
    1.5 ALTER USER SCOTT IDENTIFIED BY "tiger";
    1.6 ALTER USER SCOTT QUOTA UNLIMITED ON USERS;
    1.7 GRANT PUBLIC TO SCOTT;
    1.8 GRANT Create Public Synonym TO SCOTT;
    2. Load Oracle SOAP client to SCOTT (for Oracle 10g Release 2 Database)
    2.1 Commands
    2.1.1 Open command prompt (cmd.exe)
    2.1.2 loadjava -u scott/tiger -r -v -f -genmissing -s -grant public C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\webservices\lib\soap.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\lib\dms.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\jlib\javax-ssl-1_1.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\servlet.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\mail.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\activation.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\http_client.jar C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\lib\ejb.jar
    2.1.3 It will take around 3 minutes and you will see "something" like the following when it completes (count may not be exact) :
    Classes Loaded: 909
    Resources Loaded: 75
    Sources Loaded: 0
    Published Interfaces: 0
    Classes generated: 0
    Classes skipped: 0
    Synonyms Created: 984
    Errors: 0
    2.1.3 Close this command prompt
    3. Load Oracle JAX-RPC client to SYS (for Oracle 10g Release 2 Database)
    3.1 Commands
    3.1.1 Open command prompt (cmd.exe)
    3.1.2 loadjava -u sys/oracle -r -v -f -genmissing -s -grant public C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\dbwsclientws.jar C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\dbwsclientdb102.jar
    3.1.2.1 It will take around 15 minutes and you will see "something" like following when it completes (count may not be exact) :
    Classes Loaded: 4027
    Resources Loaded: 81
    Sources Loaded: 0
    Published Interfaces: 0
    Classes generated: 61
    Classes skipped: 0
    Synonyms Created: 4108
    Errors: 0
    3.1.3 Close this command prompt
    4. Execute UTL_DBWS packages to SYS (for Oracle 10g Release 2 Database)
    4.1 Commands
    4.1.1 Connect to SYS account only
    4.1.2 Execute the following (in TOAD you should execute them as Script, press the "thunder" button)
    4.2.1 @"C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\utl_dbws_decl.sql"
    4.2.2 @"C:\oracle\product\10.2.0\db_1\dbws_callout_utility_10131\sqlj\lib\utl_dbws_body.sql"
    4.2.3 CREATE PUBLIC SYNONYM utl_dbws FOR sys.utl_dbws;
    5. Call-out a free Web Service using SCOTT
    5.1 Commands
    5.1.1 Connect to user SCOTT with password of TIGER
    5.1.2 Copy and Paste the following "Anonymous Block" (sample #1) and execute it :
    5.1.2.1 It sould return "PL/SQL DII client return ===> Redwood City"
    declare
    service_ utl_dbws.SERVICE;
    call_ utl_dbws.CALL;
    service_qname utl_dbws.QNAME;
    port_qname utl_dbws.QNAME;
    operation_qname utl_dbws.QNAME;
    string_type_qname utl_dbws.QNAME;
    retx ANYDATA;
    retx_string VARCHAR2(1000);
    retx_double number;
    retx_len number;
    params utl_dbws.ANYDATA_LIST;
    l_input_params utl_dbws.anydata_list;
    l_result ANYDATA;
    l_namespace VARCHAR2(1000);
    begin
    -- open internet explorer and navigate to http://webservices.imacination.com/distance/Distance.jws?wsdl
    -- search for 'targetNamespace' in the wsdl
    l_namespace := 'http://webservices.imacination.com/distance/Distance.jws';
    -- search for 'service name' in the wsdl
    service_qname := utl_dbws.to_qname(l_namespace, 'DistanceService');
    -- this is just the actual wsdl url
    service_ := utl_dbws.create_service(HTTPURITYPE('http://webservices.imacination.com/distance/Distance.jws?wsdl'), service_qname);
    -- search for 'portType name' in the wsdl
    port_qname := utl_dbws.to_qname(l_namespace, 'Distance');
    -- search for 'operation name' in the wsdl
    -- there will be a lot, we will choose 'getCity'
    operation_qname := utl_dbws.to_qname(l_namespace, 'getCity');
    -- bind things together
    call_ := utl_dbws.create_call(service_, port_qname, operation_qname);
    -- default is 'FALSE', so we make it 'TRUE'
    utl_dbws.set_property(call_, 'SOAPACTION_USE', 'TRUE');
    -- search for 'operation soapAction' under <wsdl:operation name="getCity">
    -- it is blank, so we make it ''
    utl_dbws.set_property(call_, 'SOAPACTION_URI', '');
    -- search for 'encodingstyle' under <wsdl:operation name="getCity">
    utl_dbws.set_property(call_, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
    -- search for 'binding style'
    utl_dbws.set_property(call_, 'OPERATION_STYLE', 'rpc');
    -- search for 'xmlns:xs' to know the value of the first parameter
    -- under <wsdl:message name="getCityResponse"> you will see the line <wsdl:part name="getCityReturn" type="xsd:string" />
    -- thus the return type is 'string", removing 'xsd:'
    string_type_qname := utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
    -- in the line <wsdl:operation name="getCity" parameterOrder="zip">
    -- the parameterOrder is 'zip', thus we put in 'zip'
    -- the 'ParameterMode.IN' is used to specify that we will be passing an "In Parameter" to the web service
    -- the 'ParameterMode.IN' is a constant variable in the sys.utl_dbws package
    utl_dbws.add_parameter(call_, 'zip', string_type_qname, 'ParameterMode.IN');
    utl_dbws.set_return_type(call_, string_type_qname);
    -- supply the In Parameter for the web service
    params(0) := ANYDATA.convertvarchar('94065');
    -- invoke the web service
    retx := utl_dbws.invoke(call_, params);
    -- access the returned value and output it to the screen
    retx_string := retx.accessvarchar2;
    dbms_output.put_line('PL/SQL DII client return ===> ' || retx_string);
    -- release the web service call
    utl_dbws.release_service(service_);
    end;
    5.1.3 Copy and Paste the following "Anonymous Block" (sample #2) and execute it :
    5.1.3.1 It should return "PL/SQL DII client return ===> twelve thousand three hundred and forty five"
    declare
    service_ utl_dbws.SERVICE;
    call_ utl_dbws.CALL;
    service_qname utl_dbws.QNAME;
    port_qname utl_dbws.QNAME;
    operation_qname utl_dbws.QNAME;
    string_type_qname utl_dbws.QNAME;
    retx ANYDATA;
    retx_string VARCHAR2(1000);
    retx_double number;
    retx_len number;
    params utl_dbws.ANYDATA_LIST;
    l_input_params utl_dbws.anydata_list;
    l_result ANYDATA;
    l_namespace VARCHAR2(1000);
    begin
    -- open internet explorer and navigate to http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL
    -- search for 'targetNamespace' in the wsdl
    l_namespace := 'http://www.dataaccess.com/webservicesserver/';
    -- search for 'service name' in the wsdl
    service_qname := utl_dbws.to_qname(l_namespace, 'NumberConversion');
    -- this is just the actual wsdl url
    service_ := utl_dbws.create_service(HTTPURITYPE('http://www.dataaccess.com/webservicesserver/numberconversion.wso?WSDL'), service_qname);
    -- search for 'portType name' in the wsdl
    port_qname := utl_dbws.to_qname(l_namespace, 'NumberConversionSoap');
    -- search for 'operation name' in the wsdl
    -- there will be a lot, we will choose 'NumberToWords'
    operation_qname := utl_dbws.to_qname(l_namespace, 'NumberToWords');
    -- bind things together
    call_ := utl_dbws.create_call(service_, port_qname, operation_qname);
    -- default is 'FALSE', so we make it 'TRUE'
    utl_dbws.set_property(call_, 'SOAPACTION_USE', 'TRUE');
    -- search for 'operation soapAction' under <operation name="NumberToWords">
    -- it is blank, so we make it ''
    utl_dbws.set_property(call_, 'SOAPACTION_URI', '');
    -- search for 'encodingstyle'
    -- cannot find xml tag 'encodingstyle', so we just use the following as the generic encoding style
    utl_dbws.set_property(call_, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
    -- search for 'binding style'
    -- although 'document' was used, it produced an error, thus we will use 'rpc'
    -- this value is generally only 'document' or 'rpc'
    utl_dbws.set_property(call_, 'OPERATION_STYLE', 'rpc');
    -- search for 'xmlns:xs' to know the value of the first parameter
    -- under <xs:element name="NumberToWords"> you will see the line <xs:element name="ubiNum" type="xs:unsignedLong" />
    -- thus the return type is 'unsignedlong', removing 'xs:'
    -- however, upon testing, using 'unsignedlong' produced an error, while 'string' did not, so we will use 'string'
    string_type_qname := utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
    -- under <xs:element name="NumberToWords"> you will see the line <xs:element name="ubiNum" type="xs:unsignedLong" />
    -- the element name is 'ubiNum', thus we put in 'ubiNum'
    -- the 'ParameterMode.IN' is used to specify that we will be passing an "In Parameter" to the web service
    -- the 'ParameterMode.IN' is a constant variable in the utl_dbws package
    utl_dbws.add_parameter(call_, 'ubiNum', string_type_qname, 'ParameterMode.IN');
    utl_dbws.set_return_type(call_, string_type_qname);
    -- supply the In Parameter for the web service
    params(0) := ANYDATA.convertvarchar('12345');
    -- invoke the web service
    retx := utl_dbws.invoke(call_, params);
    -- access the returned value and output it to the screen
    retx_string := retx.accessvarchar2;
    dbms_output.put_line('PL/SQL DII client return ===> ' || retx_string);
    -- release the web service call
    utl_dbws.release_service(service_);
    end;
    NOTES AND REFERENCES
    =================================================================
    This detailed step-by-step guide was produced with the following guide http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm
    I could still not load Oracle JAX-RPC client to SCOTT (step 4) as it produces an error. See the following for more details :
    http://forums.oracle.com/forums/thread.jspa?threadID=633219&tstart=0
    Also, I could not consume some of the other free Web Services out there for reasons I don't know, hope someone can help clarify. See the following for more details :
    http://forums.oracle.com/forums/thread.jspa?threadID=630733&tstart=0
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    Instructions on how to use Oracle10gR2 Webservice Call-In feature
    PREREQUISITE
    =================================================================
    1. Download Oracle Database 10g Release 2 (10.2.0.1.0) (ZIP, ~655MB)
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201winsoft.html
    http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
    1.1 Choose Enterprise Edition
    2. Download OC4J Standalone - Oracle Containers for J2EE (OC4J) 10g Release 3 (10.1.3.3) (ZIP, ~93MB; Pure Java—runs on all certified platforms)
    http://www.oracle.com/technology/software/products/ias/index.html (Download Site)
    http://download.oracle.com/otn/java/oc4j/101330/oc4j_extended_101330.zip
    2.1 Extract to C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
    STEP-BY-STEP PROCEDURES
    =================================================================
    1. Connect to SYS account and create user STORE
    CREATE USER store IDENTIFIED BY store;
    GRANT connect, resource TO store;
    2. Connect to Oracle using the user STORE and password STORE
    CONNECT store/store;
    3. Execute the following objects for this excercise
    CREATE SEQUENCE order_sq;
    CREATE TABLE product_types (
    product_type_id INTEGER
    CONSTRAINT product_types_pk PRIMARY KEY,
    name VARCHAR2(10) NOT NULL
    CREATE TABLE products (
    product_id INTEGER
    CONSTRAINT products_pk PRIMARY KEY,
    product_type_id INTEGER
    CONSTRAINT products_fk_product_types
    REFERENCES product_types(product_type_id),
    name VARCHAR2(30) NOT NULL,
    description VARCHAR2(50),
    price NUMBER(5, 2)
    CREATE TABLE customers (
    customer_id INTEGER
    CONSTRAINT customers_pk PRIMARY KEY,
    first_name VARCHAR2(10) NOT NULL,
    last_name VARCHAR2(10) NOT NULL,
    dob DATE,
    phone VARCHAR2(12)
    CREATE TABLE orders (
    order_id INTEGER
    CONSTRAINT orders_pk PRIMARY KEY,
    product_id INTEGER
    CONSTRAINT purchases_fk_products
    REFERENCES products(product_id),
    customer_id INTEGER
    CONSTRAINT purchases_fk_customers
    REFERENCES customers(customer_id),
    quantity INTEGER NOT NULL
    INSERT INTO customers (
    customer_id, first_name, last_name, dob, phone
    ) VALUES (
    1, 'John', 'Brown', '01-JAN-1965', '800-555-1211'
    INSERT INTO product_types (
    product_type_id, name
    ) VALUES (
    1, 'Book'
    INSERT INTO products (
    product_id, product_type_id, name, description, price
    ) VALUES (
    1, 1, 'Modern Science', 'A description of modern science', 19.95
    COMMIT;
    CREATE OR REPLACE PACKAGE dbfunc AS
    FUNCTION place_order (
    p_product_id INTEGER,
    p_customer_id INTEGER,
    p_quantity INTEGER
    RETURN VARCHAR2;
    END dbfunc;
    CREATE OR REPLACE PACKAGE BODY dbfunc AS
    FUNCTION place_order (
    p_product_id INTEGER,
    p_customer_id INTEGER,
    p_quantity INTEGER
    RETURN VARCHAR2 IS
    v_customer_count INTEGER;
    v_product_count INTEGER;
    v_order_id INTEGER;
    BEGIN
    -- count the number of products with the
    -- supplied p_product_id (should be 1 if the product exists)
    SELECT COUNT(*)
    INTO v_product_count
    FROM products
    WHERE product_id = p_product_id;
    IF v_product_count = 0 THEN
    RETURN 'No such product';
    END IF;
    -- count the number of customers with the
    -- supplied p_customer_id (should be 1)
    SELECT COUNT(*)
    INTO v_customer_count
    FROM customers
    WHERE customer_id = p_customer_id;
    IF v_customer_count = 0 THEN
    RETURN 'No such customer';
    END IF;
    -- get the next value from orders_sq
    SELECT order_sq.nextval
    INTO v_order_id
    FROM dual;
    -- place the order
    INSERT INTO orders (
    order_id, product_id, customer_id, quantity
    ) VALUES (
    v_order_id, p_product_id, p_customer_id, p_quantity
    COMMIT;
    RETURN 'Order placed with id of ' || v_order_id;
    EXCEPTION
    WHEN OTHERS THEN
    ROLLBACK;
    RETURN 'Order not placed';
    END place_order;
    END dbfunc;
    4. Install and Configure OC4J
    4.1 Change Directory
    4.1.1 Open command prompt (cmd.exe)
    4.1.2 CD C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\bin
    4.2 Configure Environment variables (type in command prompt)
    4.2.1 set JAVA_HOME=C:\oracle\product\10.2.0\db_1\jdk
    4.2.2 set ORACLE_HOME=C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
    4.3 Starting OC4J for the first time
    4.3.1 oc4j -start
    4.3.2 If this is not your first time to "start" oc4j, go to step 4.3.4
    4.3.3 Set oc4jadmin password (use the password "oracle" w/o the quotation marks)
    08/03/21 17:13:54 Set OC4J administrator's password (password text will not be displayed as it is entered)
    Enter password:
    Confirm password:
    Confirm password: The password for OC4J administrator "oc4jadmin" has been set.
    08/03/21 17:14:01 The OC4J administrator "oc4jadmin" account is activated.
    4.3.4 OC4J has started if you see the message :
    08/03/21 17:14:16 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    4.3.5 Leave this command prompt open
    4.4 Configure Data Source
    4.4.1 Open a new command prompt via the cmd.exe command
    4.4.2 type "hostname" and then press enter
    4.4.3 Keep this command prompt open for later use
    4.4.4 Open Windows Explorer and navigate to the folder C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\config
    4.4.5 Open the file data-sources.xml
    4.4.6 Modify and Save the file so that it will look something like the following :
    4.4.6.1 Note that "hpv2710us" is my hostname found in step 4.4.2
    4.4.6.2 Note that "ORCLDEV" is the name of my Oracle Instance. (Default installation uses ORCL only)
    <connection-pool name="Example Connection Pool">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource"
    user="store"
    password="store"
    url="jdbc:oracle:thin:@//hpv2710us:1521/ORCLDEV">
    </connection-factory>
    </connection-pool>
    4.4.7 Close the text editor
    4.4.8 Close the Windows Explorer
    4.4.9 Close this command prompt (type exit)
    5. Publishing a PL/SQL Package as a Database Web Service
    5.1 Create the config.xml file
    5.1.1 Open Notepad.exe
    5.1.2 Copy and Paste the following :
    5.1.2.1 Note that "hpv2710us" is my hostname found in step 4.4.2
    5.1.2.2 Note that "ORCLDEV" is the name of my Oracle Instance. (Default installation uses ORCL only)
    <web-service>
    <display-name>PLSQL Web Service</display-name>
    <description>PLSQL Sample</description>
    <destination-path>./dbfunc.ear</destination-path>
    <temporary-directory>/tmp</temporary-directory>
    <context>/plsqlsample</context>
    <stateless-stored-procedure-java-service>
    <jar-generation>
    <schema>store/store</schema>
    <db-url>jdbc:oracle:thin:@hpv2710us:1521:ORCLDEV</db-url>
    <prefix>db.func.place.order</prefix>
    <db-pkg-name>dbfunc</db-pkg-name>
    </jar-generation>
    <uri>/dbfunc</uri>
    <database-JNDI-name>jdbc/OracleDS</database-JNDI-name>
    </stateless-stored-procedure-java-service>
    <wsdl-gen>
    <wsdl-dir>wsdl</wsdl-dir>
    <option name="force">true</option>
    <option name="httpServerURL">http://localhost:8888</option>
    </wsdl-gen>
    <proxy-gen>
    <proxy-dir>proxy</proxy-dir>
    <option name="include-source">true</option>
    </proxy-gen>
    </web-service>
    5.1.3 Save file as config.xml in the directory C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\config
    5.1.3.1 Note it should be config.xml and not config.txt
    5.1.4 Close the text editor
    5.2 Publish dbfunc Oracle Package as a Web Service
    5.2.1 Open a new command prompt via the cmd.exe command
    5.2.2 CD C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home
    5.2.3 mkdir ear
    5.2.4 CD ear
    5.2.5 set ORACLE_HOME=C:\oracle\product\10.2.0\db_1\oc4j_extended_101330
    5.2.6 set CLASSPATH=.;%ORACLE_HOME%\webservices\lib\wsdl.jar;%ORACLE_HOME%\lib\xmlparserv2.jar;%ORACLE_HOME%\soap\lib\soap.jar
    5.2.7 java -jar %ORACLE_HOME%\webservices\lib\WebServicesAssembler.jar -config C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\config\config.xml
    Please wait ...
    STORE.DBFUNC
    5.2.8 java -jar %ORACLE_HOME%\j2ee\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin oracle -deploy -file C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home\ear\dbfunc.ear -deploymentName dbfunc
    08/03/21 17:46:23 Notification ==>Application Deployer for dbfunc COMPLETES. Operation time: 296 msecs
    5.2.9 java -jar %ORACLE_HOME%\j2ee\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin oracle -bindWebApp -appname dbfunc -webModuleName dbfunc_web
    5.2.10 java -jar %ORACLE_HOME%\j2ee\home\admin_client.jar deployer:oc4j:localhost:23791 oc4jadmin oracle -bindAllWebApps -appname dbfunc
    5.2.11 Close this command prompt (type exit)
    6. Test dbfunc Web Service
    6.1 Restart OC4J
    6.1.1 Open the command prompt you used to start OC4J in step 4.1.1/4.3.1
    6.1.2 In the keyboard, hit Ctrl+C
    6.1.2.1 Type "Y" and then hit Enter
    08/03/21 18:02:51 Shutting down OC4J...
    Terminate batch job (Y/N)? Y
    6.1.2.2 Note that the command prompt should still be open
    6.1.2.2.1 If you accidentally closed the command prompt just do the following
    6.1.2.2.1.1 Do 4.1.1 to 4.2.2 and then proceed to 6.1.3
    6.1.3 oc4j -start
    Starting OC4J from C:\oracle\product\10.2.0\db_1\oc4j_extended_101330\j2ee\home...
    08/03/21 18:07:57 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    6.1.4 Leave this command prompt open
    6.2 Use the Web Service to "Order an Item"
    6.2.1 Connect to Oracle using the user STORE and password STORE
    6.2.2 select * from orders
    6.2.2.1 Zero row should return
    6.2.3 Open Internet Explorer
    6.2.4 Navigate to http://localhost:8888/plsqlsample/dbfunc
    6.2.5 Input the following :
    6.2.5.1 param0 value: 1
    6.2.5.2 param1 value: 1
    6.2.5.3 param2 value: 10
    6.2.6 Click the Invoke button
    6.2.7 A pop-up window will appear having the following contents :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <SOAP-ENV:Body>
    - <ns1:placeOrderResponse xmlns:ns1="http://db.func.place.order/dbfunc.wsdl" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <return xsi:type="xsd:string">Order placed with id of 1</return>
    </ns1:placeOrderResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    6.2.8 Go back to SQLPLUS or Toad and execute "select * from orders" again
    6.2.8.1 There should be one row
    ORDER_ID, PRODUCT_ID, CUSTOMER_ID, QUANTITY
    1, 1, 1, 10
    NOTES AND REFERENCES
    =================================================================
    This detailed step-by-step guide was produced with the following article by Jason Price http://www.oracle.com/technology/pub/articles/price_10gws.html

    Success!!!
    I had to grant this permissions:
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'getClassLoader', '' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'accessClassInPackage.sun.util.calendar', '' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.lang.RuntimePermission', 'setFactory', '' )
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.util.PropertyPermission', 'HTTPClient.socket.idleTimeout', 'write' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.net.SocketPermission', 'localhost', 'resolve' );
    call dbms_java.grant_permission( 'WS_TEST', 'SYS:java.net.SocketPermission', '127.0.0.1:8084', 'connect,resolve' );
    As I wrote earlier, WS_TEST is my user into which I load JAX-RPC client. Note that, if you load JAX-RPC client into user another than SYS, you have NOT to use -s -grant public option (wassam wrote about this too). Another thing is that I (finally) didn't load OC4J. To consume WebService I use utl_dbws.invoke(call_Handle CALL, request SYS.XMLTYPE) function.
    voytec001

  • Remove an oracle home entry from the central repository

    Does anyone know how to remove an oracle home entry from the central repository (inventory.xml file), after the oracle home in question has been deleted. It is left behind and I want to clean it up.
    thanks

    I went to the link you have posted and it did not help me.
    I cannot get rid of my Oracle Home directory. When I attempt to delete this folder, I
    get an error message:
    oci.dll ...is write protected or in use..
    So I deleted this oci.dll file. Then I rebooted and tried to delete the OraHome directory (folder)
    again, and I get the SAME error!!
    Thanks for any advice.

  • Oracle 10gR2 Automated Storage Management implementation on CentOS 4.1

    Actually there are several nice articles on Oracle Technical Network devoted to the same topic. What’s new may be said ?
    The target of this message is to highlight the optimal sequence of steps required to bring Oracle10g (10.2.0.1) ASM-database up on CentOS4.1 , placing ASM instance and serviced databases in different Oracle Homes.Oracleasm library install is done immediately after creating "oracle" linux account and "dba" group to be ready for ASM Instance creating during the first Installer run supposed to build it. ASM instance for disks and disk’s group management is created the first by Installer along with the disk’s group for database supposed to be built during the second run of Installer and to be placed into recently created disk’s group.
    I. Oracle 10gR2 ASM and ASMLib 2.0 I/O.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/wtfdata
    # chown -R oracle.oinstall /u02
    OTN instruction:-
    Before installing Automatic Storage Management, it is recommended that you install the optional add-on Automatic Storage Management support library, ASMLib. ASMLib is an application program interface (API) Oracle that is aimed at simplifying the interface between the operating system and the database, and to exploit the capabilities and strengths of storage arrays provided by different vendors ASMLib provides an alternative interface for the Automatic Storage Management-enabled kernel to discover and access block devices. It provides storage and operating system vendors the opportunity to supply extended storage-related features. These features provide benefits such as improved performance and greater data integrity.
    OTN instruction ends.
    3.To install ASMLIB 2.0 run as root:-
    # rpm -Uvh oracleasm-2.6.9-11.ELsmp-2.0.0-1.i686.rpm \
    oracleasmlib-2.0.0-1.i386.rpm \
    oracleasm-support-2.0.0-1.i386.rpm
    Now you get /etc/init.d/oracleasm ready to go.
    Configuring the Oracle ASM library driver:-
    # /etc/init.d/oracleasm configure
    Default user to own the driver interface [oracle]: oracle
    Default group to own the driver interface [dba]: dba
    Start Oracle ASM library driver on boot (y/n) [y]: y
    Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: [  OK  ]
    Scanning system for ASM disks: [  OK  ]
    # /etc/init.d/oracleasm enable
    Create ASM disks as desired utilizing command:
    # /etc/init.d/oracleasm createdisk VLM0X /dev/sdx
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login, /etc/profile.
    and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    OTN instructions:-
    It’s recommended that you install Automatic Storage Management in its own Oracle home, regardless of whether you plan to only have one or multiple database instances.Installing Automatic Storage Management in its own Oracle home helps ensure higher availability and manageability.With separate Oracle homes, you can upgrade Automatic Storage Management and databases independently, and you can remove database software without impacting the Automatic Storage Management instance. Ensure that the Automatic Storage Management version is the same or later than the Oracle Database version.If an Automatic Storage Management installation does not already exist and you select the Oracle Universal Installer option to install and configure Automatic Storage Management only, then Oracle Universal Installer installs Automatic Storage Management in its own Oracle home.
    OTN instruction ends.
    Select " Advanced installation" and
    create ASM instance in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1
    Create disk group during this run .
    Exit installer.
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed into existing disk's group in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_2 .
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database MastDB flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control URL
    http://ServerCentOS41:1158/em). Create new disk's group for flashback recovery area and modify corresponding value on Recovery Settings page of EM.
    System startup in this case should look like:-
    [oracle@ServerCentOS41 ~]$ ./lsnrstart
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:41
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_2/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@ServerCentOS41 ~]$ dbstart
    Processing ASM instance "+ASM": log file /u01/app/oracle/product/10.2.0/db_1/startup.log
    Processing Database instance "MastDB": log file /u01/app/oracle/product/10.2.0/db_2/startup.log
    [oracle@ServerCentOS41 ~]$ emctl start dbconsole
    TZ set to US/Eastern
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://ServerCentOS41:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ........................ started.
    Logs are generated in directory /u01/app/oracle/oracle/product/10.2.0/db_2/ServerCentOS41_MastDB/sysman/log
    Install described above was done with different Oracle Homes
    for ASM instance and ASM-database.
    To put ASM instance and ASM-database in same Oracle Home.
    Start runInstaller just once to build all stuff at a time.
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced option" and install "Software only"
    in ORACLE_HOME - /u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify oracle's .bash_profile:-
    export ORACLE_HOME and new PATH.
    Source new .bash_profile:-
    $. ~oracle/.bash_profile
    $dbca
    During this run the request to start CRS daemons by root will come up.
    # $ORACLE_HOME/bin/localconfig add
    ASM instance , needed disk's groups and ASM-database itself will be created.
    Then perform listener and local TNS names configuration.
    $netca
    II. Oracle 10gR2 ASM and Standard Linux I/O.
    This method creates Oracle database files on raw character devices managed by ASM using standard Linux I/O system calls.It requires to create RAW devices for all disk partitions used by ASM.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/data
    # chown -R oracle.oinstall /u02
    Just as an example create 4 partitions:
    /dev/hda6,/dev/hdc6 5 GB each one
    /dev/hda7,/dev/hdc7 3 GB each one
    Create raw devices modifying file /etc/sysconfig/rawdevices as follows:
    /dev/raw/raw1 /dev/hda6
    /dev/raw/raw2 /dev/hdc6
    /dev/raw/raw3 /dev/hda7
    /dev/raw/raw4 /dev/hdc7
    Put in /etc/rc.d/rc.local
    chown oracle:dba /dev/raw/raw*
    chmod 660 /dev/raw/raw*
    I was experiencing problems with loosing "oracle:dba" permissions after Linux
    reboot. Oracle's raw device came up with "root:disk" ownership after reboot.
    Restart Linux
    Run as root:-
    # service rawdevices restart
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login,
    /etc/profile and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced installation" and
    create ASM instance in ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/asm
    During this run create diskgroup RAWDATA1 with normal redundancy
    mirroring /dev/raw/raw1 and /dev/raw/raw2.
    You should be fine with discovering raw devices if permissions are in place (oracle:dba)
    Exit installer.
    Export ORACLE_HOME for ASM instance and corresponding PATH.
    Then run "dbca" to create diskgroup RAWDATA2 with
    normal redundancy mirroring /dev/raw/raw3 and /dev/raw/raw4
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed RAWDATA1 diskgroup
    in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database rawdbs flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control
    URL http://ServerCentOS41:1158/em). Put flashback recovery area in RAWDATA2
    modifying corresponding value on Recovery Settings page of EM.
    References.
    1.www.puschitz.com/InstallingOracle10g.shtml
    Message was edited by:
    [email protected]

    Actually there are several nice articles on Oracle Technical Network devoted to the same topic. What’s new may be said ?
    The target of this message is to highlight the optimal sequence of steps required to bring Oracle10g (10.2.0.1) ASM-database up on CentOS4.1 , placing ASM instance and serviced databases in different Oracle Homes.Oracleasm library install is done immediately after creating "oracle" linux account and "dba" group to be ready for ASM Instance creating during the first Installer run supposed to build it. ASM instance for disks and disk’s group management is created the first by Installer along with the disk’s group for database supposed to be built during the second run of Installer and to be placed into recently created disk’s group.
    I. Oracle 10gR2 ASM and ASMLib 2.0 I/O.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/wtfdata
    # chown -R oracle.oinstall /u02
    OTN instruction:-
    Before installing Automatic Storage Management, it is recommended that you install the optional add-on Automatic Storage Management support library, ASMLib. ASMLib is an application program interface (API) Oracle that is aimed at simplifying the interface between the operating system and the database, and to exploit the capabilities and strengths of storage arrays provided by different vendors ASMLib provides an alternative interface for the Automatic Storage Management-enabled kernel to discover and access block devices. It provides storage and operating system vendors the opportunity to supply extended storage-related features. These features provide benefits such as improved performance and greater data integrity.
    OTN instruction ends.
    3.To install ASMLIB 2.0 run as root:-
    # rpm -Uvh oracleasm-2.6.9-11.ELsmp-2.0.0-1.i686.rpm \
    oracleasmlib-2.0.0-1.i386.rpm \
    oracleasm-support-2.0.0-1.i386.rpm
    Now you get /etc/init.d/oracleasm ready to go.
    Configuring the Oracle ASM library driver:-
    # /etc/init.d/oracleasm configure
    Default user to own the driver interface [oracle]: oracle
    Default group to own the driver interface [dba]: dba
    Start Oracle ASM library driver on boot (y/n) [y]: y
    Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
    Writing Oracle ASM library driver configuration: [  OK  ]
    Scanning system for ASM disks: [  OK  ]
    # /etc/init.d/oracleasm enable
    Create ASM disks as desired utilizing command:
    # /etc/init.d/oracleasm createdisk VLM0X /dev/sdx
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login, /etc/profile.
    and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    OTN instructions:-
    It’s recommended that you install Automatic Storage Management in its own Oracle home, regardless of whether you plan to only have one or multiple database instances.Installing Automatic Storage Management in its own Oracle home helps ensure higher availability and manageability.With separate Oracle homes, you can upgrade Automatic Storage Management and databases independently, and you can remove database software without impacting the Automatic Storage Management instance. Ensure that the Automatic Storage Management version is the same or later than the Oracle Database version.If an Automatic Storage Management installation does not already exist and you select the Oracle Universal Installer option to install and configure Automatic Storage Management only, then Oracle Universal Installer installs Automatic Storage Management in its own Oracle home.
    OTN instruction ends.
    Select " Advanced installation" and
    create ASM instance in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1
    Create disk group during this run .
    Exit installer.
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed into existing disk's group in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_2 .
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database MastDB flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control URL
    http://ServerCentOS41:1158/em). Create new disk's group for flashback recovery area and modify corresponding value on Recovery Settings page of EM.
    System startup in this case should look like:-
    [oracle@ServerCentOS41 ~]$ ./lsnrstart
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:41
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 30-AUG-2005 17:57:42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.2.0/db_2/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ServerCentOS41)(PORT=1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 30-AUG-2005 17:57:42
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.2.0/db_2/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.2.0/db_2/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ServerCentOS41)(PORT=1522)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    [oracle@ServerCentOS41 ~]$ dbstart
    Processing ASM instance "+ASM": log file /u01/app/oracle/product/10.2.0/db_1/startup.log
    Processing Database instance "MastDB": log file /u01/app/oracle/product/10.2.0/db_2/startup.log
    [oracle@ServerCentOS41 ~]$ emctl start dbconsole
    TZ set to US/Eastern
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://ServerCentOS41:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ........................ started.
    Logs are generated in directory /u01/app/oracle/oracle/product/10.2.0/db_2/ServerCentOS41_MastDB/sysman/log
    Install described above was done with different Oracle Homes
    for ASM instance and ASM-database.
    To put ASM instance and ASM-database in same Oracle Home.
    Start runInstaller just once to build all stuff at a time.
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced option" and install "Software only"
    in ORACLE_HOME - /u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify oracle's .bash_profile:-
    export ORACLE_HOME and new PATH.
    Source new .bash_profile:-
    $. ~oracle/.bash_profile
    $dbca
    During this run the request to start CRS daemons by root will come up.
    # $ORACLE_HOME/bin/localconfig add
    ASM instance , needed disk's groups and ASM-database itself will be created.
    Then perform listener and local TNS names configuration.
    $netca
    II. Oracle 10gR2 ASM and Standard Linux I/O.
    This method creates Oracle database files on raw character devices managed by ASM using standard Linux I/O system calls.It requires to create RAW devices for all disk partitions used by ASM.
    1.Install CentOS 4.1
    2.Run as root:
    # groupadd dba # group of users to be granted SYSDBA system privilege
    # groupadd oinstall # group owner of Oracle files
    # useradd -c "Oracle software owner" -g oinstall -G dba oracle
    # passwd oracle
    # mkdir -p /u01/app/oracle
    # chown -R oracle.oinstall /u01
    # mkdir -p /u02/oradata/data
    # chown -R oracle.oinstall /u02
    Just as an example create 4 partitions:
    /dev/hda6,/dev/hdc6 5 GB each one
    /dev/hda7,/dev/hdc7 3 GB each one
    Create raw devices modifying file /etc/sysconfig/rawdevices as follows:
    /dev/raw/raw1 /dev/hda6
    /dev/raw/raw2 /dev/hdc6
    /dev/raw/raw3 /dev/hda7
    /dev/raw/raw4 /dev/hdc7
    Put in /etc/rc.d/rc.local
    chown oracle:dba /dev/raw/raw*
    chmod 660 /dev/raw/raw*
    I was experiencing problems with loosing "oracle:dba" permissions after Linux
    reboot. Oracle's raw device came up with "root:disk" ownership after reboot.
    Restart Linux
    Run as root:-
    # service rawdevices restart
    Tune /etc/sysctl.conf,/etc/security/limits.conf,/etc/pam.d/login,
    /etc/profile and oracle's shell environment as advised in [1].
    Login as oracle:-
    $ cd /tmp/database
    $./runInstaller
    Select " Advanced installation" and
    create ASM instance in ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/asm
    During this run create diskgroup RAWDATA1 with normal redundancy
    mirroring /dev/raw/raw1 and /dev/raw/raw2.
    You should be fine with discovering raw devices if permissions are in place (oracle:dba)
    Exit installer.
    Export ORACLE_HOME for ASM instance and corresponding PATH.
    Then run "dbca" to create diskgroup RAWDATA2 with
    normal redundancy mirroring /dev/raw/raw3 and /dev/raw/raw4
    $ ./runInstaller
    Select " Advanced installation" and create new ASM-database placed RAWDATA1 diskgroup
    in $ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1.
    Modify ~oracle/.bash_profile correspondently.Relogin as oracle.
    Next:-
    $ sqlplus /nolog
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1218968 bytes
    Variable Size 88082024 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 7168000 bytes
    Database mounted.
    SQL> alter database archivelog;
    Database altered.
    SQL> alter database rawdbs flashback on;
    Database altered.
    SQL> alter database open;
    Database altered.
    Open Enterpise Manager console.(Enterprise Manager 10g Database Control
    URL http://ServerCentOS41:1158/em). Put flashback recovery area in RAWDATA2
    modifying corresponding value on Recovery Settings page of EM.
    References.
    1.www.puschitz.com/InstallingOracle10g.shtml
    Message was edited by:
    [email protected]

  • Remove / Reuse Oracle Home

    An installation of Oracle 10gR2 failed in silent mode. So, I ran the deinstallation script and now want to rerun the installation but I'm getting the error: "Oracle Home with name already exists at location...Please specify another location for Oracle Home." The directory where we want to install the software is empty. What is it that we are missing in order to install the software in the directory? How do we remove the Oracle_home that was not successfully used in the failed installation?
    The server is a solaris server. I know how to accomplish this on a Windows platform server.
    Thanks.
    Message was edited by:
    klichten

    There are no eroneous entries in the oratab file. At this point we are just looking to install the 10gr2 software. Here is the error that we are receiving:
    SEVERE:OUI-10136:An Oracle Home with name OraDbHome2 already exists at location /u01/oracle/product/10.2.0. Please specify another location for Oracle Home.
    All we are looking to do is remove any references to the directory where we want to install the software and re-run the installation.

  • Installing oracle 10gr2 and applying 10.2.0.3 patchset on sun sparc 64bit

    dear all,
    im planning to install oracle 10gr2 on sun solaris sparc(64bit).
    kindly provide the steps specific to configuring kernal parameters.
    details:
    On Solaris 10
    sparc 64-bit
    uname -r
    5.10
    provide the steps to configure the kernal parameters with respect to my configuration.

    hi rajesh,
    thanks for your quick reply. but in sun solaris 10 do we need to change the entries in /etc/system.
    as per
    Oracle® Database
    Installation Guide
    10g Release 2 (10.2) for Solaris Operating System (SPARC
    64-Bit)
    B15690-02
    November 2005
    Note: In Solaris 10, you are not required to make changes to the
    /etc/system file to implement the System V TPC. Solaris 10 uses
    the resource control facility for its implementation.
    do we need to chanage the values as specified or how to proceed.?
    im confused in these with respect solaris 10.

  • SQL query was failed in my report after migrating to Oracle 10gR2

    We have a aplication running under Oracle 9.2.0.4 DB. we migrated our DB to Oracle 10gR2. While running the report, we got an error:
    ORA-00904: "A3"."FACILITY_SYSTEM_ID": invalid identifier
    ORA-06512: at "CEAS_MK_RPT.GET_LIST", line 12
    The SQL query which causes this error is:
    INSERT INTO gtt_facility_seq_generator
    (date_range)
    SELECT get_list
    (CURSOR (SELECT auf.facility_system_id
    FROM authorized_facility auf
    WHERE auf.facility_system_id = afs.facility_system_id
    AND auf.credit_application_system_id = :p_cred_appln_id
    FROM authorized_facility afs,
    (SELECT af.facility_system_id facility_system_id
    FROM facility_obligor fo, authorized_facility af, party p
    WHERE fo.facility_system_id = af.facility_system_id
    AND fo.party_system_id = p.party_system_id
    AND NOT EXISTS (
    SELECT NULL
    FROM facility_third_party_subst iftps
    WHERE iftps.facility_system_id =
    fo.facility_system_id)
    ) tab1
    WHERE afs.credit_application_system_id = :p_cred_appln_id
    AND tab1.facility_system_id = afs.facility_system_id
    ORDER BY afs.creation_date;
    The content of function get_list() is:
    CREATE OR REPLACE FUNCTION CEAS_MK_RPT.Get_List
    p_cursor IN sys_refcursor
    RETURN VARCHAR2
    IS
    l_sep VARCHAR2(4);
    l_text VARCHAR2(30000);
    l_text_return VARCHAR2(30000);
    BEGIN
    LOOP
    FETCH p_cursor INTO l_text;
    EXIT WHEN p_cursor%NOTFOUND;
    l_text_return := l_text_return || l_sep || l_text;
    l_sep := CHR(10);
    END LOOP;
    CLOSE p_cursor;
    RETURN l_text_return;
    dbms_output.put_line ('a');
    END Get_List;
    The same report was executed perfectly in Oracle 9i. Kindly help us to short out this issue. Thanks in advance.
    Regards,
    Sengol S

    Hi Nirav,
    Many thanks for your response. I verified the same, but the same query was executed successfully after removing the INSERT INTO part(executed the SELECT part only). What might be the cause for this error?
    For your kind information :
    I have 2 schema in my DB( ceas_mk_app and ceas_mk_rpt ).
    All the source tables are present in ceas_mk_app schema - These tables are used by ceas_mk_rpt schema(using synonym) to generate the report.
    I'm executing the above said query from ceas_mk_rpt to insert the necessary data in to report temp. table.
    Thanks,
    Sengol S
    Edited by: seng1256 on Dec 22, 2008 12:31 PM

  • How can i remove manually oracle 10g express edition from vista

    hello
    i use windows vista
    how can i remove manually oracle 10 g express edition
    please help

    1. Uninstall all Oracle components using the Oracle Universal Installer (OUI).
    2. Delete the HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE key which contains registry entries for all Oracle products by using regedit.
    3. Delete any references to Oracle services/components in the following registry location: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/. Looks for key entries that starts with “Ora” which are obviously related to Oracle.
    4. Reboot the workstation.
    5. Delete the ORACLE_BASE directory. (i.e C:\Oracle)
    6. Delete the C:\Program Files\Oracle directory.
    7. Empty the temp directory.
    8. Empty the recycle bin.
    have you done this?

  • Oracle 10gr2 rac, ora-12545 error when configured in shared server mode

    Hi i have fresh installation on two node rac on linux, with oracle 10gr2. It is running successfully, when i configure it in shared server mode and try to connect from client it gives error ora_12545:
    I have referred the oracle metalink notes and configured the local_listener as well as the remote_listener,
    still it is giving the error. I am able to tnsping all the entries on tnsnames.ora,
    i m also able to ping the hostnames,
    It connects most of the times succeessfully but some times it gives the error.
    how to solve this problem,
    please help me

    Basically this error means you misspelled the hostname or typed a wrong IP Address.
    Oracle Error :: TNS-12545+
    Connect failed because target host or object does not exist
    Cause
    The address specified is not valid, or the program being connected to does not exist.
    Action
    Ensure the ADDRESS parameters have been entered correctly; the most likely incorrect parameter is the node name. Ensure that the executable for the server exists (perhaps "oracle" is missing.) If the protocol is TCP/IP, edit the TNSNAMES.ORA file to change the host name to a numeric IP address and try again.
    I suggest you to check the dispatcher instance parameter.
    ~ Madrid
    http://hrivera99.blogspot.com

  • Oracle Forms 6i client/server against an Oracle 10gR2 database

    Hello
    We have the following situation:
    Oracle Forms6i/Reports6i client server application against an Oracle 8i cost-based database. we want to migrate this application
    step 1:
    Migrate the database to 10gr2, but do not touch the client application
    Go live
    step 2:
    Migrate the development environment to 6i webforms.
    Production environment stays client server.
    With this construction we can still create new patches/functionality.
    step 3:
    Migrate to Forms10gR2 (and reports)
    I know Forms 6i is not supported anymore.
    My question is on step 1.
    When I read NOTE: 338513.1 entitled "Is Forms/Reports 6i Certified To Work Against Oracle Server 10g Rel 1, Rel 2 or 11g?" carefully
    it says that Forms 6i is not certified against 10gR2.
    On OTN I read several posts that this works ok (assuming you do not use the wrong character set).
    I also read on OTN that patch 18 (which is only supported for EBS customers) is certified against 10gR2.
    The questions:
    - Is Oracle Forms patch 18 certified against an Oracle 10gR2 database? (or only for EBS)
    - Is there anybody out there that can confirm that Oracle Forms 6i C/S works against Oracle 10gR2
    Regards Erik

    Thank you.
    Now I found it.
    But how do I read that page.
    It says:
    Client Certifications
    OS      Product      Server Status
    XP      6.0.8.27.0 Patch 18      N/A      Desupported
    Application Tier Certifications
    OS      Product      Server      Status      
    XP      6.0.8.27.0 Patch 18      9.2      Desupported
    XP      6.0.8.27.0 Patch 18      10g      Desupported
    I read this as follows:
    Patch 18 was certified agains a 10g database in a webforms environment.
    No client server mentioned and Server 10g , so no 10gR2!
    I'm I right?
    Regards Erik

  • Oracle 10gR2 on Solaris 10-Disk space question

    I am going to install Oracle 10gR2 on Solaris 10 (x86). I need some advice on Disk space allocations. Altogether i've 10GB allocated for both Solaris and Oracle in VMware. My current allocation is this:
    / ----------->6177mb
    swap---------->1024mb
    /tmp ----------> 400mb
    /export/home------->2570mb
    Is this enough to install a Basic Oracle Database? I am going to use it only for learning purposes.

    It is Ok to start, but I suggest you to read the:
    Oracle® Database Installation Guide
    10g Release 2 (10.2) for Solaris Operating System (x86)
    Part Number B15697-01
    for further requirements and a complete step by step guide.
    ~ Madrid.

  • Oracle 10GR2 Installation On Cloud

    Hi Exports,
    Can anyone give me some knowledge how to Install Oracle 10GR2 on Cloud Server (Windows Server 2008 R2 64 bit). as i am very new to install Oracle in Cloud server. I am trying to install it but failed to proceed next after selecting advance installation.
    Thanks in advance...

    A server is a server is a server, whether physical sitting under your desk or in a datacenter, or virtual in "a cloud". The install process is the same as documented in the installation guide.
    http://docs.oracle.com/cd/B19306_01/install.102/b15681/toc.htm
    Which exact version of 10gR2 ? You will need 10.2.0.4 or later - http://docs.oracle.com/cd/B19306_01/relnotes.102/b15680/toc.htm#CHDFHIEA
    Have you met all of the pre-reqs and are you following all of the steps in the Install Guide ? Pl post the last 100 lines from the install log - http://docs.oracle.com/cd/B19306_01/install.102/b15681/ts.htm#i1090466
    HTH
    Srini

  • Steps to remove a database

    Hi, I need to create a bat file to remove the database in Oracle 9i. The following are the steps:
    1) remove database Windows services
    2) remove password file
    3) remove database directory structure
    Does anyone have a script to perform that?
    Thanks a lot

    I posted a new set of graphical tools to manage, monitor and tune the Oracle database. One of the many functions and utilities is a function that generates scripts (Windows, Unix) to delete a database. It is free and can be downloaded from http://www.odbtools.com. I will greatly appreciate any suggestions.
    Here is a sample script generated for Wndows:
    @REM Deleting database test817 related files and directories.
    @REM Deleting redo log files.
    del /q/f C:\ORACLE\ORADATA\TEST817\REDO05.LOG
    del /q/f C:\ORACLE\ORADATA\TEST817\REDO04.LOG
    del /q/f C:\ORACLE\ORADATA\TEST817\REDO03.LOG
    del /q/f C:\ORACLE\ORADATA\TEST817\REDO02.LOG
    del /q/f C:\ORACLE\ORADATA\TEST817\REDO01.LOG
    @REM Deleting data files
    del /q/f C:\ORACLE\ORADATA\TEST817\DEMOIDX01.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\DEMOTBS01.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\PART101.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\PART201.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\PART301.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\PART401.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\PART501.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\PART601.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\RBS01.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\SYSTEM01.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\TEMP01.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\TEMP02.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\TEMP101.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\TEMP102.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\TEST101.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\TOOLS01.DBF
    del /q/f C:\ORACLE\ORADATA\TEST817\USERS01.DBF
    @REM Deleting admin files.
    rd /s/q C:\oracle\admin\test817\bdump
    rd /s/q C:\oracle\admin\test817\udump
    rd /s/q %ORACLE_HOME%\RDBMS\TRACE
    del /q/f C:\oracle\oradata\test817\control01.ctl
    del /q/f C:\oracle\oradata\test817\control02.ctl
    del /q/f C:\oracle\oradata\test817\control03.ctl
    @REM Deleting Oracle service.
    cd C:\oracle\ora81\bin
    C:\oracle\ora81\bin\oradim -DELETE -SID test817
    Michel.
    http://www.odbtools.com

Maybe you are looking for