Import of XML in the oracle 11g database

I have some difficulty parsing of an XML file in the oracle 11g database.

Currently using Oracle 11 g Express Edition (XE)

Here's how my XML file looks like this:


<? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
-< AccountMap xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
-< account >
-< AccountMapping >
< AccountID > 0000000000000 - 000 < / AccountID >
< AccountName > XLS < / AccountName >
Excel < AccountType > < / AccountType >
< AccountOwner > system < / AccountOwner >
< / AccountMapping >
-< AccountMapping >
< AccountID > 0000000000000 - 001 < / AccountID >
< AccountName > XLSS < / AccountName >
Excel2 < AccountType > < / AccountType >
System2 < AccountOwner > < / AccountOwner >
< / AccountMapping >
-< AccountMapping >

and so now the file continues... I have the xml file that is saved on my hard drive

I created a package in SQL Developer

create or replace
PACKAGE XML_FILEHANDLER AS

type TRecord is (record
Account_ID varchar2 (100)
, Varchar2 (100) AccountName
, Varchar2 (30) AccountType
, AccountOwner varchar2 (100)
);

type TRecordTable is table of the TRecord;

getRows function (p_directory in varchar2, p_filename in varchar2) return TRecordTable pipeline;

END XML_FILEHANDLER;

-BODY

create or replace
PACKAGE BODY XML_FILEHANDLER AS

getRows function (p_directory in varchar2, p_filename in varchar2) return TRecordTable AS pipeline

nb_rec NUMBER: = 1;
tmp_xml CLOB.
tmp_file CLOB.
REC TRecord;

BEGIN

DBMS_LOB.CREATETEMPORARY (tmp_file, true);
tmp_file: = dbms_xslprocessor.read2clob (p_directory, p_filename);

recomm. Account_ID: = regexp_replace (tmp_file, '. * <>(. *) Account_ID < / Account_ID >. *', '\1', 1, 1, 'n');
recomm. AccountName: = regexp_replace (tmp_file, '. * < AccountName >(.*) < / AccountName >. *', '\1', 1, 1, 'n');
recomm. AccountType: = regexp_replace (tmp_file, '. * < AccountType >(.*) < / AccountType >. *', '\1', 1, 1, 'n');
recomm. AccountOwner: = regexp_replace (tmp_file, '. * < AccountOwner >(.*) < / AccountOwner >. *', '\1', 1, 1, 'n');

loop

-This regexp is instance (s) of this model: "<? XML...? ' > < root_tag >... < / root_tag >.
tmp_xml: = regexp_substr ([tmp_file, ' < \?xml[^?] +------? > \s+ < ([^ >] +) >. *? < / \1 > ', 1, nb_rec, 'n');
When the output length (tmp_xml) = 0;
-dbms_output.put_line (tmp_rec);
nb_rec: = nb_rec + 1;

SELECT Account_ID AccountName, AccountType, AccountOwner
in rec. Account_ID, rec. AccountName, AccountType rec. rec. AccountOwner
from xmltable)
"Accounts/AccountMapping" in the way of xmltype (tmp_xml) columns
Path of varchar2 (100) Account_ID 'Account_ID '.
, Path of varchar2 (100) AccountName "AccountName".
, AccountType varchar2 (30) path 'AccountType '.
, Path of varchar2 (100) AccountOwner "AccountOwner.
);

line (CRE);

end loop;

DBMS_LOB.freeTemporary (tmp_file);

GetRows END;

END XML_FILEHANDLER;

-I call my function using the following sql query

Select * from table (XML_FileHandler.getRows ("XML", "test.xml"));

Here is the error I get

ORA-29283: invalid file operation
ORA-06512: at "SYS." UTL_FILE", line 536
ORA-29283: invalid file operation
ORA-06512: at "XDB". DBMS_XSLPROCESSOR', line 265
ORA-06512: at "user. XML_FILEHANDLER', line 13
29283 00000 - "invalid file operation.
* Cause: An attempt was made to read from a file or a directory which is
not exist, or the file or directory access was denied by the
Operating system.
* Action: Check access privileges to the file and directory on the file system
and if reading, check that the file exists.

I did the following

-Provided appropriate access to the user (read, write), including directory access rights
-ensure that the directory exists
-to ensure the existence of the file

I have searched all over google and metalink but am unable to get this to run... Help, please!

>
SELECT Account_ID AccountName, AccountType, AccountOwner
in rec. Account_ID, rec. AccountName, AccountType rec. rec. AccountOwner
from xmltable)
"Accounts/AccountMapping" in the way of xmltype (tmp_xml) columns
Path of varchar2 (100) Account_ID 'Account_ID '.
, Path of varchar2 (100) AccountName "AccountName".
, AccountType varchar2 (30) path 'AccountType '.
, Path of varchar2 (100) AccountOwner "AccountOwner.
);
>
implement

SELECT Account_ID, AccountName, AccountType, AccountOwner
into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
from xmltable(
'AccountMap/Accounts/AccountMapping' passing xmltype(tmp_xml) columns
Account_ID varchar2(100) path 'Account_ID'
, AccountName varchar2(100) path 'AccountName'
, AccountType varchar2(30) path 'AccountType'
, AccountOwner varchar2(100) path 'AccountOwner'
);
SQL> SELECT Account_ID, AccountName, AccountType, AccountOwner
  2  --into rec.Account_ID, rec.AccountName, rec.AccountType, rec.AccountOwner
  3  from xmltable(
  4  'AccountMap/Accounts/AccountMapping' passing
  5  xmltype('
  6  
  7  
  8  
  9  0000000000000-000
 10  XLS
 11  Excel
 12  System
 13  
 14  
 15  0000000000000-001
 16  XLSS
 17  Excel2
 18  System2
 19  
 20  
 21  ')
 22  columns
 23  Account_ID varchar2(100) path 'Account_ID'
 24  , AccountName varchar2(100) path 'AccountName'
 25  , AccountType varchar2(30) path 'AccountType'
 26  , AccountOwner varchar2(100) path 'AccountOwner'
 27  );

ACCOUNT_ID                                                                       ACCOUNTNAME                                                                      ACCOUNTTYPE                    ACCOUNTOWNER
-------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ------------------------------ --------------------------------------------------------------------------------
                                                                                 XLS                                                                              Excel                          System
                                                                                 XLSS                                                                             Excel2                         System2

SQL> 

AccountID use AccountID not Account_ID

Account_ID varchar2(100) path 'AccountID'

Published by: Alexandr on August 9, 2012 12:35 AM

Tags: Oracle Development

Similar Questions

  • How to disable the trace files in the oracle 11g version

    Senario: trace file grow
    How to disable the trace files in the oracle 11g version
    pls guide with best practices

    NATHALIE wrote:
    Senario: trace file grow
    How to disable the trace files in the oracle 11g version
    pls guide with best practices

    11 g, there is an extended tracing which happens for reasons best known only to Oracle. But if you want to disable, Coskan had published a small ticket mentioning a parameter not documented (which means you should think twice before using it) to disable it - disablehealth_check *. Here you can read the full message,
    http://Coskan.WordPress.com/2009/06/03/too-many-trace_file-on-11g/

    Aman...

  • can we use advice in the oracle 11g version?

    can we use advice in the oracle 11g version? It works?

    Prasad wrote:
    can we use advice in the oracle 11g version? It works?

    Hello

    Yes

    Please find the document
    http://docs.Oracle.com/CD/E11882_01/server.112/e16638/hintsref.htm

    Concerning
    Hitgon

    Published by: hitgon on April 25, 2012 15:24

  • Is is possible to connect Netbean IDE to the Oracle XE database.

    Is possible to connect Netbean IDE to the Oracle XE database uses drivers provided with Netbean network.

    I m giving continuation of input to Netbean parameter.

    Data entry mode: entry field
    Driver name: JAVA DB (Network)
    Host: light-LMO
    Port: 1521
    Database: XE
    Username:lightweight
    Password: xxxxx


    When tried connecting the Oracle XE using netbean I got following error.


    ubable to add a connection. Could not establish a connection to the jdbc:derby://lightweight-ovm:1521 / XE
    using org.apache.derby.jdbc.ClientDriver (insufficient during the reading of the network - wait a minimum)
    6 bland and received only 1 byrtes. the connection has been lost.


    However, I can able to connect in the jsp pages using the following connection string.

    Class.forName ("oracle.jdbc.driver.OracleDriver");
    Conn = DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:XE", "light", "oracle");


    What's not here?

    Please post this in

    Database connectivity - Java Database Connectivity (JDBC) Forums...

    http://forums.Sun.com/forum.jspa?forumid=48&start=0

    Concerning
    Rajesh

  • Help to download the xml of the oracle table below

    Dear all,

    I tried best to download the below xml to oracle table but giving the link between the tables is very difficult for me. can someone help me to import the XML below for oracle table

    <? XML version = "1.0" encoding = "utf-8"? >
    < Claim.Submission xmlns:tns = "http://www.haad.ae/DataDictionary/CommonTypes" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: noNamespaceSchemaLocation = "http://www.haad.ae/DataDictionary/CommonTypes/ClaimSubmission.xsd" >
    < header >
    MF65 < SenderID > < / SenderID >
    C014 < ReceiverID > < / ReceiverID >
    < TransactionDate > 03/12/2012 10:40 < / TransactionDate >
    < RecordCount > 1 < / RecordCount >
    < DispositionFlag > PRODUCTION < / DispositionFlag >
    < / header >
    < claim >
    < ID > 23112 / < ID >
    < MemberID > 100000874 < / MemberID >
    A022 < PayerID > < / PayerID >
    MF65 < ProviderID > < / ProviderID >
    < EmiratesIDNumber > 111-1111-1111111-1 < / EmiratesIDNumber >
    < raw > 115 < / gross >
    < PatientShare > 20 < / PatientShare >
    < net > 95 < / Net >
    < meeting >
    MF65 < FacilityID > < / FacilityID >
    < type > 1 < / Type >
    < > 47685 PatientID < / PatientID >
    < Start > 02/11/2012 12:00 < / Start >
    < / meeting >
    < Diagnostics >
    Principal of < type > < / Type >
    < code > < code > 461.9
    < / Diagnosis >
    < Diagnostics >
    Secondary < type > < / Type >
    < code > < code > 462
    < / Diagnosis >
    < activity >
    23112_1 < ID > < /ID >
    < Start > 02/11/2012 12:00 < / Start >
    < type > 3 < / Type >
    < code > < code > 99202
    < quantity > 1 < / quantity >
    < net > 95 < / Net >
    D1310 < clinician > < / clinician >
    < / activity >
    < / claim >
    < Claim.Submission >

    Pls tell me how I can get

    Have you considered using the storage relational object for this?
    Since you have patterns, you could record in the database, which will automatically create storage appropriate for your XML documents as well as validate at the time of insertion.
    You can then create individual views to query the nested parts of the document and finally insert the data into relational tables final.

    See the documentation for an introduction to the concepts:
    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e23094/partpg2.htm#g997354

    You will find examples on the {forum: id = 34} forum and its FAQ: {: identifier of the thread = 410714}

  • Insert data as XML into the Oracle Table

    Hi all

    I have a requirement where the data in XML format, and I need to insert into the Oracle Table. For example, I get XML data in the following format,
    < results >
    < row >
    < BANK_ACCOUNT_ID > 10010 < / BANK_ACCOUNT_ID >
    < BANK_ID > 300968 < / BANK_ID >
    Vision operations < LEGAL_ENTITY > < / LEGAL_ENTITY >
    < BANK_NAME > BofA < / BANK_NAME >
    < BANK_ACCOUNT_NUM > 10271-17621-619 < / BANK_ACCOUNT_NUM >
    < BANK_ACCOUNT_NAME > BofA-204 < / BANK_ACCOUNT_NAME >
    < BRANCH_NAME > New York < / BRANCH_NAME >
    USD < CURRENCY_CODE > < / CURRENCY_CODE >
    < BALANCE_DATE > 2007 - 11 - 09 < / BALANCE_DATE >
    < LEDGER_BALANCE > 432705900.56 < / LEDGER_BALANCE >
    < / row >
    < row >
    < BANK_ACCOUNT_ID > 10091 < / BANK_ACCOUNT_ID >
    < BANK_ID > 300984 < / BANK_ID >
    Vision industries < LEGAL_ENTITY > < / LEGAL_ENTITY >
    Barclay Bank < BANK_NAME > < / BANK_NAME >
    < BANK_ACCOUNT_NUM > 70986798 < / BANK_ACCOUNT_NUM >
    Bank Multi currency-626 < BANK_ACCOUNT_NAME > Barclays < / BANK_ACCOUNT_NAME >
    Reading < BRANCH_NAME > < / BRANCH_NAME >
    GBP < CURRENCY_CODE > < / CURRENCY_CODE >
    < BALANCE_DATE > 2007 - 11 - 14 < / BALANCE_DATE >
    < LEDGER_BALANCE > 24244085.24 < / LEDGER_BALANCE >
    < / row >
    < row >
    < BANK_ACCOUNT_ID > 10127 < / BANK_ACCOUNT_ID >
    < BANK_ID > 300968 < / BANK_ID >
    < LEGAL_ENTITY > SSC U.S. 01 < / LEGAL_ENTITY >
    < BANK_NAME > BofA < / BANK_NAME >
    < BANK_ACCOUNT_NUM > 4898744 < / BANK_ACCOUNT_NUM >
    < BANK_ACCOUNT_NAME > BofA SSC U.S. 02-7188 < / BANK_ACCOUNT_NAME >
    < BRANCH_NAME > New York < / BRANCH_NAME >
    USD < CURRENCY_CODE > < / CURRENCY_CODE >
    < BALANCE_DATE > 2007 - 11 - 28 < / BALANCE_DATE >
    < LEDGER_BALANCE > 10783815.28 < / LEDGER_BALANCE >
    < / row >
    < / results >

    I like to write PLSQL code that will receive these data with XML tags and insert it into the Oracle Table. Is this possible with built-in XML features provided in the Oracle database?

    Please Guide...

    Kind regards
    Priyanka

    But the problem is the file XML is to have the details of the records if you carefully observed the XML file. But by using more high statement select I get output in the following format.
    ORG_ID REQ_LINE PO_NUMBER EXPECTED_REC_QTY USER_NAME REQ_NUMBER
    204204 1444714450 11 64446445 11 OPERATIONSOPERATIONS

    The table has only one row, so you get a single row as output.
    I'm surprised that you find useful examples showing how to divide the data into several lines.

    (1) create the table with the following option, it will optimize the performance of storage and query for large XML documents:

    CREATE TABLE xxios_xml_data_test(xml_data XMLTYPE)
    XMLTYPE COLUMN xml_data STORE AS SECUREFILE BINARY XML
    ;
    

    (2) interview table with:

    SQL> select x.*
      2  from xxios_xml_data_test t
      3     , xmltable(
      4         '/Results/Row'
      5         passing t.xml_data
      6         columns ORG_ID           number       path 'ORG_ID'
      7               , REQ_NUMBER       number       path 'REQ_NUMBER'
      8               , REQ_LINE         number       path 'REQ_LINE'
      9               , PO_NUMBER        number       path 'PO_NUMBER'
     10               , EXPECTED_REC_QTY number       path 'EXPECTED_REC_QTY'
     11               , USER_NAME        varchar2(30) path 'USER_NAME'
     12       ) x
     13  ;
    
        ORG_ID REQ_NUMBER   REQ_LINE  PO_NUMBER EXPECTED_REC_QTY USER_NAME
    ---------- ---------- ---------- ---------- ---------------- ------------------------------
           204      14447          1       6444                1 OPERATIONS
           204      14450          1       6445                1 OPERATIONS
     
    
  • Latest version of the Oracle 11g for Windows Client

    I was able to download Oracle 11 g Client base of
    http://www.Oracle.com/technology/software/products/database/Oracle11g/111060_win32soft.html

    Anyone know if this what they have for 11g? Oracle has provided any patches in addition to this group?

    I'll have to specify this patch #: 6890831 and I should specify Windows (32) for platform? The Oracle Clients are Windows machines.

    Yes that's correct.

  • Team Foundation Server Issues in the Oracle (ODT) database project

    Hi all

    Developer Dotnet and Oracle, I fortunately came across the ODT.
    Unfortunately, I have some problems in combination with the Team Foundation Server that hopefully someone here, the experts may resolve.

    So, it's the environment...

    Client:
    Windows 7 business
    Teacher of Visual Studio 2010.
    ODT with ODAC 12.1.0.1.0

    Servers:
    Foundation of the Server 2012 team
    Oracle Database 11 g Release 11.2.0.2.0 - 64 bit


    Description of the problem:

    Well, almost everything seems to be working.
    I can connect to my database diagram in Server Explorer, edit and save back views, functions, packages,... and save them to the server.
    I can create a new "project database Oracle" in Visual Studio.
    Now, I right click and select "generate the Script to create project". This also works very well. Points of view or anything else I clicked are added to the Oracle database project.
    Finally I select 'Add to Source code control' and the whole solution and any addition of scripts are archived as you wish.
    I can now change, automatically checked it as used in th IDE of VS.
    Works perfectly so far...

    But now I have problems to add new scripts. It makes me crazy.
    I right click again on a new view, etc. and select "Generate the Script to create project". The script is added to the same Oracle database project.
    The project file is also removed, because it now has a new added file. BUT the same script file will not be added to the source control.
    And worse yet, I'm not easily able to add the file manually in the context menu of the command "Add to source control" or something similar.
    The only way is to open windows Explorer, move to the previously added script file and add it to source code control using power tools shell extensions.
    I can't imagine that this is the way planned to add additional scripts to the ODP.

    So is there anyone around who can tell me how to solve this problem?

    Best regards
    Martin

    Hi Martin,

    I have recently come to know that there actually is a bug very similar to the old version of Oracle development tools.

    It is fixed in the latest version (12.1.0.1.2 or later).

    When you get a chance, please try it.

    Thank you

    Christian

  • B2B - BAM integration does not work with the Oracle XE database

    Hello

    Can someone explain the reasons in detail, 'the B2B - BAM integration does not work with the database Oracle XE'?

    Can't we use XE POC simple to demonstrate BAM?

    Published by: 975946 on December 27, 2012 04:14

    Hi Nithin,

    The main reason for this Oracle XE database can't handle such a huge process. Same Oracle XE is not supported in production.
    Note that SOA requires 300 process and BAM more than 100 processes (400 total), which is in addition to any other requirement its 500 to parameter.but process during the installation of Oracle SOA RCU, I hope you gave 300 single right.so his can't handle as much load if use B2B BAM integration.

    The ultimate goal is to have need to display active data in the right BAM reports? so, if you are using Oracle XE DB its may be not possible to show the active data.that the reason Oracle recommended use / works with Oracle 10 g Oracle 11 g versions EE and EE.

    Best regards
    Siva San.

  • sample oracle 11g database

    1st of all thank you for clicking on my post. I am new to Oracle thouth so many post where I had the opportunity.

    Can anyone help with the example of the name of databast or link to Oracle 11 g Express edition. I have a history of MS SQL Server 2005/2008 and I am very new to Oracle. I had the opportunity to work on Oracle between I want practical as I practiced on AdventureWorks for SQL Server.

    In addition, if you have links of some really good tutorial for SQL and PL SQL oracle 10 g or 11 g so please help with even :)

    You are in the right place, my friend. Create an OTN account & get below...

    * 11g XE (Express Edition) *-http://www.oracle.com/technetwork/products/express-edition/downloads/index.html

    SQL Developer - http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html
    It's the free IDE from Oracle.
    Currently I use both of them for my personal practice.

    Oracle documentation "* the Bible of the Oracle;
    10g - http://www.oracle.com/pls/db102/homepage
    11g - http://www.oracle.com/pls/db112/homepage
    For all materials of the Oracle, I consider that the master link is - http://tahiti.oracle.com/

    Please let me know if you have other concerns.

    Vanessa B.

  • Restore the Oracle XE database to another machine

    I have an Oracle XE server on a Windows XP computer, and I want to copy it to a Windows 7 computer.
    On XP, I did a backup through the database "backup" interface graph user (BACKUP. (BAT). The Oracle backup created 3 new folders under C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\
    ARCHIVELOG
    AUTOBACKUP
    BACKUPSET

    I installed XE on the Windows 7 machine and it seems to work.
    Then I had to face the 3 files to backup on a USB and put them in the folder structure on the new Windows 7 machine. I ran the restore from the GUI as administrator (RESTORATION. (BAT). Restore failed, and I can't understand why. I don't know what are the sequence numbers.

    Now I can't get into Apex or Apex_Admin

    Thanks for taking a peek at this.

    The contents of the OXE_RESTORE file is as follows:
    Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 8 18:33:11 2011

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

    Windows NT Version V6.1
    CPU: 8 - type 586, 4 physical cores
    Process affinity: 0x00000000
    Memory (success/Total): Ph: 6031 M / 8183 M, Ph + FCP: 13737 M / 16364 M, GOES: 1973M / 2047 M
    From debugging disabled

    connected to target database: xe (unassembled)

    RMAN > set the echo;
    2 > restore (spfile to autobackup db_recovery_file_dest = 'C:\oraclexe\app\oracle\flash_recovery_area\');
    3 > strength of startup nomount;
    4 > restore (automatic backup controlfile);
    5 > change the editing of the database;
    6 > configure controlfile autobackup.
    7 > restore database;
    8 >
    echo on

    From restoration to January 8, 11
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 37 devtype = DISK

    destination field of recovery: C:\oraclexe\app\oracle\flash_recovery_area\
    name of database (or unique name of database) used for research: XE
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_. BKP
    channel ORA_DISK_1: restore SPFILE full automatic backup
    Finished restore at 8 January 11

    Oracle instance started

    Total System Global Area 805306368 bytes

    Bytes of size 1289996 fixed
    239075572 variable size bytes
    562036736 of database buffers bytes
    Redo buffers 2904064 bytes

    From restoration to January 8, 11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 36 devtype = DISK

    destination field of recovery: C:\oraclexe\app\oracle\flash_recovery_area
    name of database (or unique name of database) used for research: XE
    channel ORA_DISK_1: autobackup found in the recovery area
    channel ORA_DISK_1: autobackup found: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_. BKP
    channel ORA_DISK_1: restore full automatic backup of control file
    name of the output file = C:\ORACLEXE\ORADATA\XE\CONTROL. DBF
    Finished restore at 8 January 11

    mounted database
    output channel: ORA_DISK_1

    RMAN old configuration settings:
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    new RMAN configuration settings:
    CONFIGURE CONTROLFILE AUTOBACKUP
    new RMAN configuration settings are stored successfully

    From restoration to January 8, 11
    From implicit overlapping Backup 8 January 11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 35 devtype = DISK
    Cut objects 1
    Backup of implicit overlap ended in January 8, 11

    Starting copy of implicit cross-8 Jan 11
    using channel ORA_DISK_1
    Copy of implicit overlap finished-8 Jan 11

    the search for all files in the recovery area
    cataloging files...
    cataloging done

    List of cataloged files
    =======================
    File name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_. ARC
    File name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_. ARC
    File name: C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\AUTOBACKUP\2011_01_07\O1_MF_S_739828107_6LHF2W3X_. BKP

    using channel ORA_DISK_1

    channel ORA_DISK_1: from datafile backupset restoration
    channel ORA_DISK_1: specifying datafile (s) to restore from backup set
    restoring datafile 00001 to C:\ORACLEXE\ORADATA\XE\SYSTEM. DBF
    restoring datafile 00002 to C:\ORACLEXE\ORADATA\XE\UNDO. DBF
    restoring datafile 00003 to C:\ORACLEXE\ORADATA\XE\SYSAUX. DBF
    restoring datafile 00004 to C:\ORACLEXE\ORADATA\XE\USERS. DBF
    restoring datafile 00005 to C:\ORACLEXE\ORADATA\XE\APEX_1244616068553754.DBF
    channel ORA_DISK_1: backup C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_ piece reading. BKP
    channel ORA_DISK_1: restored the backup part 1
    piece handle = C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2011_01_07\O1_MF_NNNDF_TAG20110107T194642_6LHDZM3X_. Tag BKP = TAG20110107T194642
    channel ORA_DISK_1: restore complete, duration: 00:00:56
    Finished restore at 8 January 11

    Complete recovery manager.

    Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 8 18:34:37 2011

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

    Windows NT Version V6.1
    CPU: 8 - type 586, 4 physical cores
    Process affinity: 0x00000000
    Memory (success/Total): Ph: 6021 M / 8183 M, Ph + FCP: 13238 M / 16364 M, GOES: 1973M / 2047 M
    From debugging disabled

    connected to target database: XE (DBID = 2604800077, is not open)

    RMAN > set the echo;
    2 > restore database;
    3 > alter database open resetlogs;
    4 >
    echo on

    From back-8 Jan 11
    using the control file of the target instead of recovery catalog database
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid = 38 devtype = DISK

    starting media recovery

    Archive journal 1 sequence 375 thread is already on the disk that the file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_. ARC
    archive log thread 1 sequence 376 is already on the disk that the file C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_. ARC
    archive log filename = C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_375_6LHF31CQ_. Wire ARC = 1 sequence = 375
    archive log filename = C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ARCHIVELOG\2011_01_07\O1_MF_1_376_6LHF3DCQ_. Wire ARC = 1 sequence = 376
    Cannot find the log archiving
    archive log thread = 1 sequence = 377
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the command recover at 08/01/2011 18:34:47
    RMAN-20000: abnormal termination of job step
    RMAN-06054: recovery of media asking unknown journal: thread 1 seq 377 lowscn 11715842

    Complete recovery manager.

    After playing a bit, I solved the problem.
    There are a total of four records in \FLASH_RECOVERY_AREA\XE\ I had copied only three of the four.
    ARCHIVELOG
    AUTOBACKUP
    BACKUPSET

    Windows services store the files in open ONLINELOG, so I had to shut down services and then work with the folder. That's why four files must be moved and copied onto the new machine:
    ARCHIVELOG
    AUTOBACKUP
    BACKUPSET
    ONLINELOG

    If you are running as an administrator "Backup" of the GUI, it runs the BACKUP. BEATS, a batch file called RMAN. Once that is done, copy the four files to the same location on the target computer, and then run as administrator 'Restore' (RESTORATION. (BAT).

    In another forum someone told to be sure that the 'archive logs' are copied. It should be interpreted to mean not only the folder 'ARCHIVELOG', but all four files.

    Published by: PhilMan2 on January 11, 2011 11:28

  • Procedure of APEX 3.1 to 3.1.2 on the Oracle XE database update

    Hello

    How to make an update of APEX full 3.1 to 3.1.2 on an Oracle XE database with the installation package (which you can normally get to OTN)? I mean the patches from Metalink 7313609 group will not work on a XE database because there is no built-in opatch.

    Is it possible the procedure of normal update should I use for this:

    @apexins password TEMP SYSAUX SYSAUX is


    Thanks in advance,


    Tobias

    Tobias,

    The 3.1.2 patch does not use opatch since it is not patch the Oracle binaries, etc, it's just a SQL script that you run that updates the PLSQL packages, code, etc. inside the database (more than news images, javascript, etc.).

    As such, there is no reason that the patch could not be run on XE (assuming that you are allowed to download the patch etc.).

    John.
    --------------------------------------------
    http://Jes.blogs.shellprompt.NET
    http://www.apex-evangelists.com

  • Need to size the Oracle RAC database settings and configurations as storage size % etc.

    Hi Experts,

    We have a requirment that we need size parameters of database to an Oracle database RAC 11g as the sizing of disk space, memory, and CPU (SAN), Cluster size etc what would the size of the recommendation for major banks or large project? Can you describe in sizes (TB). I'm not sure of the growth of the DB files on a daily basis and no customers.

    Thanks in advance.

    Viji

    It is a bit of an oxymoron.

    You ask for one RAC server sizing. When RAC architecture allows you to evolve by adding more servers.

    So if you have treatment volumeX to do, you have only 2 servers fabricant1 RAC to deal effectively with him. Or you can need 4 servers Fabricant2 CAR care effectively. There are many factors (unique to this client) which determines the choices made.

    So 'sizing' the server is not a matter to be treated, until you've decided just what type of server, you will use for your RAC (dual core, quad core, 8 cores, base 16, etc.), how much he must take care of the memory, the amount of energy, it would consume, it takes up the amount of space (rack units) in a Cabinet how much local diskspace, it must support, how many PCI slots must be to HBA and HCA and other cards, etc.

    Once this is decided (1 rack unit, dual core processors 4, 2 PCI slots, etc), can you evaluate vendors and server models available and decide how much of these servers must be purchased to meet the needs of data processing envisaged.

    If for example, the decision is 3 servers and after deployment, it is determined that server capacity has been underestimated, then a 4th server can be purchased and added to the cluster of 3 Server - and the cluster set scale to actually do deal with the volumes of data processing.

    One of the fundamental reasons for RAC is scalability. This means that only one server sizing is much less important than choosing the correct h/w architecture which allows to evolve this cluster by adding more h/w.

    It would be very stupid to buy and build a server 2 CARS which was 'size' for volumeX, then find that the volume is X + Y, and 2 servers can only be resized at great expense to 3 servers (for example 4 unit rack servers, rack unit space only 2 left in the cabinet, required for quad powersupply by server power cannot be satisfied for 3rd server) (, no fiber port more SAN, etc.).

  • Freezing of the Oracle RAC databases

    Hi all

    We use oracle database 11g version 11.2.0.1.0 RAC database standard edition having two active instances.

    Recently, we have been confronted with a database, freezing problem, the regular orders program has not run in DB.

    Can anyone suggest me how to find the reason of this problem and what needs to be monitored side DB for a few days?

    Thanks in advance.

    John, but this assumes that actually perform the jobs - would not quite the case.

    My meat with the question (as Konda explained), is owner of problem. Developers who seem to refuse to have their process not running problem, he blames on the database and now awaits the DBA to own the problem simply because of their opinion without merit (and a little ignorant) as the database "frozen".

    It is unfair to expect the DBA through all kinds of hoops to find the 'problem' in a bottom-up analysis of the problem.

    A fundamental question for developers should be, prove it. Showed the code to run (work performed). And then a question why there is no instrumentation in their code just to say what's happened...

  • License for the Oracle ODBC database gateway

    Hello world!

    I am using Oracle Database Gateway for ODBC (Oracle 11 g Gateway) to create dblink Oracle 10.2.0.4

    According to this price list, I do not see the price details for the database gateway for ODBC Oracle

    http://www.Oracle.com/us/corporate/pricing/technology-price-list-070617.PDF
    Please refer to page 3 and 4

    and according to the guidelines of it, I don't need a separate license. Could someone shed some light. I have the database and the gateway in the same machine

    http://download.Oracle.com/docs/CD/E11882_01/license.112/e10594.PDF

    Please refer to page 1-7, which says

    Gateway for ODBC Oracle database
    Database gateway for ODBC Oracle can be installed and used on a different machine
    the machine where the database Oracle is installed and used. Should not be
    to obtain a separate license for the machine running Oracle Gateway for ODBC

    Please shed some light.

    Thanks in advance.

    Hello
    As it is said, as long as you have a license of RDBMS, you need not a separate license for DG4ODBC. If confusion is where it says "Oracle Database Gateway for ODBC can be installed and used on a different machine," then it is just to clarify that you run the gateway on a machine completely separated from the performer the RDBMS under license, but you can also run DG4ODBC on the same machine where the RDBMS is installed.
    If you install 11g DG4ODBC on the same machine where you have a 10g RDBMS then it must be installed in an another ORACLE_HOME.

    If this still isn't clear, so please come back and let us know exactly what you need to clarify.

    Kind regards
    Mike

Maybe you are looking for

  • HP - 870-01 desktop PC OMEN: Virtualization

    I thank all members of this forum, I am newbie. My system is a PC OMEN of Office HP - 870-017ns (ENERGY STAR) My question is: I want to install a Virtual Machine, an Oracle in a 64-bit as my system environment. I can't find my 64 bit environment duri

  • I lost my files - how to recover them?

    HI GUYS,. Recently, I realized that some videos and image files simply disappear from my HD. I need a disaster recovery software, fast file recovery I think it was deleting the file an accident or a hardware failure, but not a virus attack! What I sh

  • HP G61-429 WM: USB FOR laptop HP G61-429WM

    Could you please tell me if I can use a Lexar 32 GB jumpdrive USB 3.0 on my laptop HP G61-424WM. Thank you

  • G580 - laptop won't start not

    I had purchased lenovo g580 core i3 a year ago. 2 days, after closing my laptop, when I tried to turn it on, screen appeared at the beginning, but not usual lenovo can't anything after that. It crashes without giving a answer... There is 2 option or

  • Programming a c application that calls a *.so built by LabVIEW.

    Hi all This question has probably been asked, but I can't find the answer.  So here's my question: I built a *.so LabVIEW under Linux and I would like to call from a 'c' application  The *.so LabVIEW returns a set of strings, and I want to know how t