General formula in Oracle 10g

Hi,
I use Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod.
I want to develop a way to deal with complex expressions using SQL. I can't use listagg, so I use xmlagg. I created a query, which runs within 8-15 secs. It returns 20000 rows. When I slightly modify the query (should run within 80-150 secs and return 200000 rows), it keeps running and running... Is it because I use XML functions (I don't really understand the way XML functions work, I only use it)? I put these two queries in question separated by lines. Any hints on how to improve the performance of the query wouldl be appreciated. Any hints on how to replace the complex replace expression in the query would be also great.
Thanks,
Gabor
How to make it look like a code? How can I display the /[B/] (but without /) expression in the code?
with dim_mut as (select 1 as mut_id, '([A]+)-([C]+[D])' as keplet from dual
union select 2 as mut_id, '([A]+[B])*([C]+[D])' as keplet from dual
), dim_mut_komp as (
select 1 as mut_id,1 as mut_komp_id,1 as mut_sorszam,'[A]' as mut_azonosito from dual
union select 1,2,2,'[B]' from dual
union select 1,3,3,'[C]' from dual
union select 1,4,4,'[D]' from dual
union select 2,5,1,'[A]' from dual
union select 2,6,2,'[B]' from dual
union select 2,7,3,'[C]' from dual
union select 2,8,4,'[D]' from dual
), sp8 as (select 1 as mut_komp_id from dual
union select 2 from dual
union select 3 from dual
union select 4 from dual
union select 5 from dual
union select 6 from dual
union select 7 from dual
union select 8 from dual),
sp10 as (select 0 as sorszam from dual
union select 1 from dual
union select 2 from dual
union select 3 from dual
union select 4 from dual
union select 5 from dual
union select 6 from dual
union select 7 from dual
union select 8 from dual
union select 9 from dual),
dim_mut_value as
select /*+ no_merge */s1.mut_komp_id,
s2.sorszam+s3.sorszam*10+s4.sorszam*100+s5.sorszam*1000 as sorszam,
ceil(dbms_random.value(1,100)) as ertek
from sp8 s1,
sp10 s2,
sp10 s3,
sp10 s4,
sp10 s5
select count(*) from (
select
replace(
replace(
replace(
replace(
keplet,
substr(azonositok,1,instr(azonositok,';',1,1)-1),
substr(ertekek,1,instr(ertekek,';',1,1)-1)
substr(azonositok,instr(azonositok,';',1,1)+1,instr(azonositok,';',1,2)-instr(azonositok,';',1,1)-1),
substr(ertekek,instr(ertekek,';',1,1)+1,instr(ertekek,';',1,2)-1-instr(ertekek,';',1,1))
substr(azonositok,instr(azonositok,';',1,2)+1,instr(azonositok,';',1,3)-1-instr(azonositok,';',1,2)),
substr(ertekek,instr(ertekek,';',1,2)+1,instr(ertekek,';',1,3)-1-instr(ertekek,';',1,2))
substr(azonositok,instr(azonositok,';',1,3)+1,instr(azonositok,';',1,4)-1-instr(azonositok,';',1,3)),
substr(ertekek,instr(ertekek,';',1,3)+1,instr(ertekek,';',1,4)-1-instr(ertekek,';',1,3))
) as kifejezes,
substr(azonositok,1,instr(azonositok,';',1,1)-1) as azonosito1,
substr(ertekek,1,instr(ertekek,';',1,1)-1) as ertek1
substr(azonositok,instr(azonositok,';',1,1)+1,instr(azonositok,';',1,2)-instr(azonositok,';',1,1)-1) as azonosito2,
substr(ertekek,instr(ertekek,';',1,1)+1,instr(ertekek,';',1,2)-1-instr(ertekek,';',1,1)) as ertek2
substr(azonositok,instr(azonositok,';',1,2)+1,instr(azonositok,';',1,3)-1-instr(azonositok,';',1,2)) as azonosito3,
substr(ertekek,instr(ertekek,';',2,1)+1,instr(ertekek,';',1,3)-1-instr(ertekek,';',1,2)) as ertek3
substr(azonositok,instr(azonositok,';',1,3)+1,instr(azonositok,';',1,4)-1-instr(azonositok,';',1,3)) as azonosito4,
substr(ertekek,instr(ertekek,';',1,3)+1,instr(ertekek,';',1,4)-1-instr(ertekek,';',1,3)) as ertek4,
keplet,
ertekek,
azonositok,
dbms_aw.eval_number(
replace(
replace(
replace(
replace(
keplet,
substr(azonositok,1,instr(azonositok,';',1,1)-1),
substr(ertekek,1,instr(ertekek,';',1,1)-1)
substr(azonositok,instr(azonositok,';',1,1)+1,instr(azonositok,';',1,2)-instr(azonositok,';',1,1)-1),
substr(ertekek,instr(ertekek,';',1,1)+1,instr(ertekek,';',1,2)-1-instr(ertekek,';',1,1))
substr(azonositok,instr(azonositok,';',1,2)+1,instr(azonositok,';',1,3)-1-instr(azonositok,';',1,2)),
substr(ertekek,instr(ertekek,';',1,2)+1,instr(ertekek,';',1,3)-1-instr(ertekek,';',1,2))
substr(azonositok,instr(azonositok,';',1,3)+1,instr(azonositok,';',1,4)-1-instr(azonositok,';',1,3)),
substr(ertekek,instr(ertekek,';',1,3)+1,instr(ertekek,';',1,4)-1-instr(ertekek,';',1,3))
) as vegeredmeny
from (
select m.mut_id,
mv.sorszam,
xmlagg(xmlelement(e,mv.ertek||';') order by mk.mut_sorszam).extract('//text()') as ertekek,
xmlagg(xmlelement(e,mk.mut_azonosito||';') order by mk.mut_sorszam).extract('//text()') as azonositok,
m.keplet
from dim_mut m,
dim_mut_komp mk,
dim_mut_value mv
where m.mut_id=mk.mut_id and mk.mut_komp_id=mv.mut_komp_id
group by m.mut_id,m.keplet, mv.sorszam
with dim_mut as (select 1 as mut_id, '([A]+[B])-([C]+[D])' as keplet from dual
union select 2 as mut_id, '([A]+[B])*([C]+[D])' as keplet from dual
), dim_mut_komp as (
select 1 as mut_id,1 as mut_komp_id,1 as mut_sorszam,'[A]' as mut_azonosito from dual
union select 1,2,2,'[B]' from dual
union select 1,3,3,'[C]' from dual
union select 1,4,4,'[D]' from dual
union select 2,5,1,'[A]' from dual
union select 2,6,2,'[B]' from dual
union select 2,7,3,'[C]' from dual
union select 2,8,4,'[D]' from dual
), sp8 as (select 1 as mut_komp_id from dual
union select 2 from dual
union select 3 from dual
union select 4 from dual
union select 5 from dual
union select 6 from dual
union select 7 from dual
union select 8 from dual),
sp10 as (select 0 as sorszam from dual
union select 1 from dual
union select 2 from dual
union select 3 from dual
union select 4 from dual
union select 5 from dual
union select 6 from dual
union select 7 from dual
union select 8 from dual
union select 9 from dual),
dim_mut_value as
select /*+ no_merge */s1.mut_komp_id,
s2.sorszam+s3.sorszam*10+s4.sorszam*100+s5.sorszam*1000+s6.sorszam*10000 as sorszam,
ceil(dbms_random.value(1,100)) as ertek
from sp8 s1,
sp10 s2,
sp10 s3,
sp10 s4,
sp10 s5,
sp10 s6
select count(*) from (
select
replace(
replace(
replace(
replace(
keplet,
substr(azonositok,1,instr(azonositok,';',1,1)-1),
substr(ertekek,1,instr(ertekek,';',1,1)-1)
substr(azonositok,instr(azonositok,';',1,1)+1,instr(azonositok,';',1,2)-instr(azonositok,';',1,1)-1),
substr(ertekek,instr(ertekek,';',1,1)+1,instr(ertekek,';',1,2)-1-instr(ertekek,';',1,1))
substr(azonositok,instr(azonositok,';',1,2)+1,instr(azonositok,';',1,3)-1-instr(azonositok,';',1,2)),
substr(ertekek,instr(ertekek,';',1,2)+1,instr(ertekek,';',1,3)-1-instr(ertekek,';',1,2))
substr(azonositok,instr(azonositok,';',1,3)+1,instr(azonositok,';',1,4)-1-instr(azonositok,';',1,3)),
substr(ertekek,instr(ertekek,';',1,3)+1,instr(ertekek,';',1,4)-1-instr(ertekek,';',1,3))
) as kifejezes,
substr(azonositok,1,instr(azonositok,';',1,1)-1) as azonosito1,
substr(ertekek,1,instr(ertekek,';',1,1)-1) as ertek1
substr(azonositok,instr(azonositok,';',1,1)+1,instr(azonositok,';',1,2)-instr(azonositok,';',1,1)-1) as azonosito2,
substr(ertekek,instr(ertekek,';',1,1)+1,instr(ertekek,';',1,2)-1-instr(ertekek,';',1,1)) as ertek2
substr(azonositok,instr(azonositok,';',1,2)+1,instr(azonositok,';',1,3)-1-instr(azonositok,';',1,2)) as azonosito3,
substr(ertekek,instr(ertekek,';',2,1)+1,instr(ertekek,';',1,3)-1-instr(ertekek,';',1,2)) as ertek3
substr(azonositok,instr(azonositok,';',1,3)+1,instr(azonositok,';',1,4)-1-instr(azonositok,';',1,3)) as azonosito4,
substr(ertekek,instr(ertekek,';',1,3)+1,instr(ertekek,';',1,4)-1-instr(ertekek,';',1,3)) as ertek4,
keplet,
ertekek,
azonositok,
dbms_aw.eval_number(
replace(
replace(
replace(
replace(
keplet,
substr(azonositok,1,instr(azonositok,';',1,1)-1),
substr(ertekek,1,instr(ertekek,';',1,1)-1)
substr(azonositok,instr(azonositok,';',1,1)+1,instr(azonositok,';',1,2)-instr(azonositok,';',1,1)-1),
substr(ertekek,instr(ertekek,';',1,1)+1,instr(ertekek,';',1,2)-1-instr(ertekek,';',1,1))
substr(azonositok,instr(azonositok,';',1,2)+1,instr(azonositok,';',1,3)-1-instr(azonositok,';',1,2)),
substr(ertekek,instr(ertekek,';',1,2)+1,instr(ertekek,';',1,3)-1-instr(ertekek,';',1,2))
substr(azonositok,instr(azonositok,';',1,3)+1,instr(azonositok,';',1,4)-1-instr(azonositok,';',1,3)),
substr(ertekek,instr(ertekek,';',1,3)+1,instr(ertekek,';',1,4)-1-instr(ertekek,';',1,3))
) as vegeredmeny
from (
select m.mut_id,
mv.sorszam,
xmlagg(xmlelement(e,mv.ertek||';') order by mk.mut_sorszam).extract('//text()') as ertekek,
xmlagg(xmlelement(e,mk.mut_azonosito||';') order by mk.mut_sorszam).extract('//text()') as azonositok,
m.keplet
from dim_mut m,
dim_mut_komp mk,
dim_mut_value mv
where m.mut_id=mk.mut_id and mk.mut_komp_id=mv.mut_komp_id
group by m.mut_id,m.keplet, mv.sorszam
Edited by: BluShadow on 04-Oct-2012 09:12
added {noformat}{noformat} tags for code readability. Please read: {message:id=9360002} to learn to do this yourself.

The following links describe the new Text features in Oracle 10g and 11g.
http://download.oracle.com/docs/cd/B19306_01/text.102/b14218/whatsnew.htm#i969790
http://download.oracle.com/docs/cd/B28359_01/text.111/b28304/whatsnew.htm#sthref6

Similar Messages

  • Error while generating  BI Reports with Formules From Oracle 10g reports

    Hi Team,
    I had a problem of viewing reports in Bi Publisher. I will explain what i am doing
    I an taking an example table emplyee to generate the reports
    create or replace package body tstPkg as
    I am creating Package Header as Below
    function check_role(p_sal number) return varchar2 as
    v varchar2(100);
    begin
    if p_sal > 2000 then
    v := 'MGR';
    else
    v := 'EXEC';
    end if;
    return v;
    end;
    and I am creating Package Body
    create or replace package tstPkg as
    function check_role(p_sal number) return varchar2;
    end;
    after creation i am generating a report by using the formulae so that in paper layout it will generate 14 pages
    with an extra column in a passage format.
    After this i saved it in specific folder
    Then i am converting to XML by using "Reports Converter" Tool to xml.
    By using ConvetionTool ioracle.apps.xdo.rdfparser.BIPBatchConversion , i converted the xml file and it generated .Pls files , template files and the rest..
    After this i cpoied the folder structure into bi publisher reports, then i refreshed the metadata and i changed the defualt data source. but it showing the error as
    ORA-00923: FROM keyword not found where expected
    and my quetry is like this in data template
    select *,EmpSal.cf_1formula(emp.SAL) CF_1 from emp
    How to resolve the above problem?
    Regards
    Bhuvan
    end;
    Edited by: 867649 on Jun 22, 2011 6:38 AM

    Hi,
    When i tried to compile below packages. It gave 'Warning: Package altered with compilation errors.' message for both.
    DBMS_SWRF_REPORT_INTERNAL
    DBMS_SWRF_INTERNAL
    Again i came back to original position. Now again all 4 objects are in INVALID state. Please advice.
    Regards

  • General question on SQL Server 2000 to Oracle 10g

    Hello all,
    I just have a general question on migration from SQL Server 2000 to Oracle 10g using SQL Developer.
    How does it migrate Users with proper privileges from SQL Server to Oracle? Follow the interface steps? Or should the users be created on destination Oracle side?
    Thank you.

    Hi,
    It depends which type of migration you are making.
    For a 'Standard' migration when you migrate data a 'create user' statement is created as part of the migration and you will see this in the generated code.
    If you are using the 'Quick' migration option then you need to create the Oracle user or use an existing user to receive the data.
    Your best option is to review the documentation available from -
    http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
    or directly from -
    http://download.oracle.com/docs/cd/E12151_01/index.htm
    and then get back with specific questions if this does not give you the information you need.
    Review the chapter -
    2. Migrating Third-Party Databases
    in -
    Oracle® Database SQL Developer User’s Guide Release 1.5
    Regards,
    Mike

  • Oracle 10g 64 bit general query

    Hi,
    I have installed the oracle 10g 64 bit server on a windows x_64 2003 server.
    I did not find the 'ORacle.DataAccess.dll' at all in the bin directory.
    Is it that i need to install another patch or package to get that as my client needs that DLL to connect to .
    Any suggestions are welcome.
    varun

    I did not find the 'ORacle.DataAccess.dll' at all in
    the bin directory.
    Is it that i need to install another patch or package
    to get that as my client needs that DLL to connect toFor DataAccess.dll you need to install Oracle Data Provider for .NET
    http://www.oracle.com/technology/software/tech/dotnet/odt_index.html
    Cheers!

  • How to avoid of application running on Oracle 10g to be copied?

    I am a newbie to the security issues, so I need your help, please, where to start / what to read:
    I have an application running across many customers on Oracle 10g. I have faced lately that our users
    can use their daily backups to establish a totaly new database on a same / different server
    and point our application to use it as well.
    Is there any way to avoid it? F.e. I thought to use SELECT * FROM v$instance; to get the server instance details, and
    in result with some other function to obtain, let say, local server's (WIN2003) details,
    such as HD Serial Number, MAC number or so and then to check these values each time user runs the application.
    Is it the correct way? What are the basics here at all?
    Many thanks in advance to all!

    A lot of enterprises, however, actively avoid systems which are locked down to a particular server for very legitimate reasons. If my data center dies in the middle of the night, I sure don't want to have to call your mobile phone so that you can get to a computer, log in to the office network, and get me a new key so that I can finish my emergency failover. If I've got dozens of applications, I absolutely don't want to do that with dozens of different vendors.
    It sounds like your problem, though, isn't that users are installing your software on multiple computers it's that they are accessing functionality they haven't licensed. That is generally a much easier problem to solve and doesn't require you to lock anything down to a particular machine. You can create a table LICENSED_CONTENT, for example,
    CREATE TABLE licensed_content (
      client_id    NUMBER,
      content_type VARCHAR2(30),
      key          RAW(128)
    )In this case, KEY is, say, a hash (using the DBMS_CRYPTO or DBMS_OBFUSCATION_TOOLKIT packages if you'd like) of the client_id, content_type, and a bit of salt (i.e. a fixed string that only you know). When you sell a license to manage diamond content, you provide a script that inserts the appropriate row in the LICENSED_CONTENT table. When your application starts up, it reads the LICENSED_CONTENT table and verifies the hash before allowing users to access that type of content. This allows legitimate customers to move the software from one system to another but prevents them from accessing new functionality without a new license.
    Justin

  • APEX 3.1.0.00.32 doesn't work with ORACLE 10g SE 10.2.0.1.0

    I have Oracle 10g Express Edition 10.2.0.1.0 under Windows XP SP2 on my Personal Computer. There is installed the too , which is working fine.
    Also I have Oracle 10g Standard Edition 10.2.0.1.0 (after installing Oracle 10g BI SE One) under Windows 2000 Adv. Server (On remote Server named URAN).
    I tried to install the APEX 3.1.0.00.32 on URAN Server.
    I made all points from the list in the Oracle Database Application Express Installation Guide Release 3.1 E10496-02 (the same steps on my Personal Computer where APEX 3.1.0.00.32 is working fine).
    But!!!
    When I’m starting APEX 3.1.0.00.32 (on the Server - http://URAN:8080/apex/apex_admin) then I get errror:
    Unauthorized
    after 3 time entering the correct user & password ( from URAN accounts list ) in XDB user window.
    QUESTION 1: Why version number of Database on my PC & on Server is same, but
    APEX 3.1.0.00.32 on my PC is working fine while its is not working on the Server?
    I found out in Internet the APEX 3.1.0.00.32 is working correctly on ORACLE SE from version 10.2.0.3. But ! I have Oracle 10g Express Edition VERSION ‘s 10.2.0.1.0 and the APEX 3.1.0.00.32 is working fine there. What ?! Oracle 10g XE 10.2.0.1.0 & Oracle 10g SE 10.2.0.1.0 have different the data dictionary?
    QUESTION 2: In Oracle® Database Application Express Installation Guide
    Release 3.1 E10496-02 , in section
    4.3 About Configuring the Embedded PL/SQL Gateway
    said
    Note:
    The Oracle XML DB HTTP Server with the embedded PL/SQL gateway is not supported prior to Oracle Database 11g.
    But! My Oracle 10g Express Edition has version is 10.2.0.1.0 (less than 11g) AND …
    And APEX 3.1.0.00.32 is working fine by using XML DB HTTP Server nevertheless!
    By starting - http://127.0.0.1:8080/apex/apex_admin
    SUMMARY: Could I launch APEX 3.1.0.00.32 on the Server ( after any magic pass )?
    OR I need upgrade my Oracle 10g Standard Edition 10.2.0.1.0 to version 10.2.0.3.0 (what very difficultly and idly for me)?

    Firstly, XE 10.2.0.1 isn't the same as 10gR2 10.2.0.1
    It was released a bit later and had some fixes that were in later 10.2.0.x patchsets (and also had some different security settings). Maybe they should have gone with 10.2.1.1.
    Second, the embedded PL/SQL gateway was okay for XE, but isn't supported for Apex on the Standard/Enterprise Edition until 11g. It doesn't mean it never works, but it does mean that you shouldn't rely on it.
    That said, there are other issues with 10.2.0.1 so I'd recommend going for the latest patchset anyway.
    Thirdly, if you get the XDB login dialog box, something has gone wrong. For the embedded PL/SQL gateway, XDB is acting as a virtual webserver. Generally what should happen is you connect to the webserver (XDB) and request a page (the APEX login page) and XDB should give it to you, no questions asked.
    If it asks you to login then the XDB webserver is running but is trying to get authorisation before it gives you the page. [By the way, if it does prompt for a username/password, it is expecting a database username/password, not an apex one or an O/S one] I'd suspect something is wrong with the setup.
    What happens if you ask for a simple image like
    http://URAN:8080/i/bottom_left.gif

  • APEX 3.1.0.00.32 doesn't work with ORACLE 10g SE 10.2.0.1.0 (altered)

    I have Oracle 10g Express Edition 10.2.0.1.0 under Windows XP SP2 on my Personal Computer. There is installed the APEX 3.1.0.00.32 too , which is working fine.
    Also I have Oracle 10g Standard Edition 10.2.0.1.0 (after installing Oracle 10g BI SE One) under Windows 2000 Adv. Server (On remote Server named URAN).
    I tried to install the APEX 3.1.0.00.32 on URAN Server.
    I made all points from the list in the Oracle Database Application Express Installation Guide Release 3.1 E10496-02 (the same steps on my Personal Computer where APEX 3.1.0.00.32 is working fine).
    But!!!
    When I’m starting APEX 3.1.0.00.32 (on the Server - http://URAN:8080/apex/apex_admin) then I get errror:
    Unauthorized
    after 3 time entering the correct user & password ( from URAN accounts list ) in XDB user window.
    QUESTION 1: Why version number of Database on my PC & on Server is same, but
    APEX 3.1.0.00.32 on my PC is working fine while its is not working on the Server?
    I found out in Internet the APEX 3.1.0.00.32 is working correctly on ORACLE SE from version 10.2.0.3. But ! I have Oracle 10g Express Edition VERSION ‘s 10.2.0.1.0 and the APEX 3.1.0.00.32 is working fine there. What ?! Oracle 10g XE 10.2.0.1.0 & Oracle 10g SE 10.2.0.1.0 have different the data dictionary?
    QUESTION 2: In Oracle® Database Application Express Installation Guide
    Release 3.1 E10496-02 , in section
    4.3 About Configuring the Embedded PL/SQL Gateway
    said
    Note:
    The Oracle XML DB HTTP Server with the embedded PL/SQL gateway is not supported prior to Oracle Database 11g.
    But! My Oracle 10g Express Edition has version is 10.2.0.1.0 (less than 11g) AND …
    And APEX 3.1.0.00.32 is working fine by using XML DB HTTP Server nevertheless!
    By starting - http://127.0.0.1:8080/apex/apex_admin
    SUMMARY: Could I launch APEX 3.1.0.00.32 on the Server ( after any magic pass )?
    OR I need upgrade my Oracle 10g Standard Edition 10.2.0.1.0 to version 10.2.0.3.0 (what very difficultly and idly for me)?

    Firstly, XE 10.2.0.1 isn't the same as 10gR2 10.2.0.1
    It was released a bit later and had some fixes that were in later 10.2.0.x patchsets (and also had some different security settings). Maybe they should have gone with 10.2.1.1.
    Second, the embedded PL/SQL gateway was okay for XE, but isn't supported for Apex on the Standard/Enterprise Edition until 11g. It doesn't mean it never works, but it does mean that you shouldn't rely on it.
    That said, there are other issues with 10.2.0.1 so I'd recommend going for the latest patchset anyway.
    Thirdly, if you get the XDB login dialog box, something has gone wrong. For the embedded PL/SQL gateway, XDB is acting as a virtual webserver. Generally what should happen is you connect to the webserver (XDB) and request a page (the APEX login page) and XDB should give it to you, no questions asked.
    If it asks you to login then the XDB webserver is running but is trying to get authorisation before it gives you the page. [By the way, if it does prompt for a username/password, it is expecting a database username/password, not an apex one or an O/S one] I'd suspect something is wrong with the setup.
    What happens if you ask for a simple image like
    http://URAN:8080/i/bottom_left.gif

  • Error on clone database, oracle 10g release 2 for windows server 2008

    Hi,
    OS: Windows Server 2008 X64
    Oracle: oracle 10g release r2 for windows server 2008
    An error occurred when creating a database, stop at last step, Screenshot:
    [http://temp.wsria.com/oracle_create_db.png|http://temp.wsria.com/oracle_create_db.png]
    the trace log content:
    [main] [9:56:35:982] [CommandLineArguments.process:563] CommandLineArguments->process: number of arguments = 32
    [main] [9:56:35:982] [CommandLineArguments.process:738] CommandLineArguments->process: Create Database argument is specified
    [main] [9:56:35:982] [CommandLineArguments.process:910] CommandLineArguments->process: template Name argument is specified
    [main] [9:56:35:982] [CommandLineArguments.process:960] CommandLineArguments->process: db name argument is specified
    [main] [9:56:35:982] [CommandLineArguments.process:3074] CommandLineArguments->process: in Operation Type is Creation/GenerateScripts Mode condition
    [main] [9:56:35:997] [CommandLineArguments.process:3298] CommandLineArguments->process: Successfully process command line arguments
    [main] [9:56:36:668] [Host.checkOPS:2055] Inside checkOPS
    [main] [9:56:36:668] [Host.checkOPS:2067] Trying to check cluster existence
    [main] [9:56:36:715] [Library.getInstance:97] Created instance of Library.
    [main] [9:56:36:715] [Library.load:197] Loading orauts.dll...
    [main] [9:56:36:715] [Library.load:203] oracleHome D:\oracle\product\10.2.0\db_1
    [main] [9:56:36:715] [sPlatform.isHybrid:63] osName=Windows Vista osArch=amd64 rc=false
    [main] [9:56:36:715] [Library.load:223] Loading library D:\oracle\product\10.2.0\db_1\bin\orauts.dll
    [main] [9:56:36:715] [Library.load:247] Loaded library D:\oracle\product\10.2.0\db_1\bin\orauts.dll from path=
    D:\oracle\product\10.2.0\db_1\bin
    [main] [9:56:36:715] [Library.load:197] Loading MSVCRT.dll...
    [main] [9:56:36:715] [Library.load:203] oracleHome D:\oracle\product\10.2.0\db_1
    [main] [9:56:36:715] [sPlatform.isHybrid:63] osName=Windows Vista osArch=amd64 rc=false
    [main] [9:56:36:715] [Library.load:223] Loading library D:\oracle\product\10.2.0\db_1\bin\MSVCRT.dll
    [main] [9:56:36:731] [Library.load:247] Loaded library D:\oracle\product\10.2.0\db_1\bin\MSVCRT.dll from path=
    D:\oracle\product\10.2.0\db_1\bin
    [main] [9:56:36:731] [Library.load:197] Loading orawsec10.dll...
    [main] [9:56:36:731] [Library.load:203] oracleHome D:\oracle\product\10.2.0\db_1
    [main] [9:56:36:731] [sPlatform.isHybrid:63] osName=Windows Vista osArch=amd64 rc=false
    [main] [9:56:36:731] [Library.load:223] Loading library D:\oracle\product\10.2.0\db_1\bin\orawsec10.dll
    [main] [9:56:36:731] [Library.load:247] Loaded library D:\oracle\product\10.2.0\db_1\bin\orawsec10.dll from path=
    D:\oracle\product\10.2.0\db_1\bin
    [main] [9:56:36:731] [Library.load:197] Loading orasrvm10.dll...
    [main] [9:56:36:731] [Library.load:203] oracleHome D:\oracle\product\10.2.0\db_1
    [main] [9:56:36:731] [sPlatform.isHybrid:63] osName=Windows Vista osArch=amd64 rc=false
    [main] [9:56:36:731] [Library.load:223] Loading library D:\oracle\product\10.2.0\db_1\bin\orasrvm10.dll
    [main] [9:56:36:731] [Library.load:247] Loaded library D:\oracle\product\10.2.0\db_1\bin\orasrvm10.dll from path=
    D:\oracle\product\10.2.0\db_1\bin
    [main] [9:56:36:731] [Version.isPre10i:189] isPre10i.java: Returning FALSE
    [main] [9:56:36:731] [WindowsSystem.regKeyExists:1006] WindowsSystem.regKeyExists: mainkey= HKEY_LOCAL_MACHINE subkey = Software\Oracle\Ocr
    [main] [9:56:36:746] [WindowsSystem.getCSSConfigType:1163] configType=null
    [main] [9:56:36:746] [Host.checkOPS:2073] cluster existence:false
    [main] [9:56:36:746] [Host.checkOPS:2111] Cluster installed=false
    [main] [9:56:36:902] [InitParamHandler.endElement:506] CustomSGA flag: false
    [main] [9:56:36:902] [InitParamHandler.endElement:507] Database Type: MULTIPURPOSE
    [main] [9:56:36:918] [InitParamHandler.endElement:508] Mem Percentage: 40
    [main] [9:56:36:918] [InitParamHandler.endElement:526] distributing Memory: 13737443328
    [main] [9:56:36:918] [MemoryCalculator.calculateMemory:122] Setting SGA to MAX_SGA 1610612736
    [main] [9:56:36:918] [StorageAttributes.setAttribute:232] IN threadID:1 group#=1
    [main] [9:56:36:918] [StorageAttributes.setAttribute:232] IN threadID:1 group#=2
    [main] [9:56:36:918] [StorageAttributes.setAttribute:241] Current threadID=1
    [main] [9:56:36:918] [StorageAttributes.setAttribute:248] Current threadID=1 ==> redoGroups[0]=1
    [main] [9:56:36:918] [StorageAttributes.setAttribute:258] vRedoGroups:[1]
    [main] [9:56:36:918] [StorageAttributes.setAttribute:288] setAttribute: bExists=false
    [main] [9:56:36:918] [StorageAttributes.setAttribute:232] IN threadID:1 group#=3
    [main] [9:56:36:918] [StorageAttributes.setAttribute:241] Current threadID=1
    [main] [9:56:36:918] [StorageAttributes.setAttribute:248] Current threadID=1 ==> redoGroups[0]=1
    [main] [9:56:36:918] [StorageAttributes.setAttribute:248] Current threadID=1 ==> redoGroups[1]=2
    [main] [9:56:36:918] [StorageAttributes.setAttribute:258] vRedoGroups:[1, 2]
    [main] [9:56:36:933] [StorageAttributes.setAttribute:288] setAttribute: bExists=false
    [main] [9:56:36:933] [TemplateManager.parseCloneTemplate:1477] See for any transportable datafiles in TemplateManager.....
    [main] [9:56:36:933] [TemplateManager.isInstallTemplate:2178] Selected Template by user:=General Purpose
    [main] [9:56:36:933] [TemplateManager.isInstallTemplate:2185] The Message Id to be searched:=GENERAL_PURPOSE
    [main] [9:56:36:933] [TemplateManager.parseCloneTemplate:1489] create new clone data file for tp file.......
    [main] [9:56:36:933] [Host.setupOIDCommandlineParameters:7184] setupOIDCommandlineParameters:
    [main] [9:56:36:933] [Host.setupOIDCommandlineParameters:7185] m_regWithdirService: false
    [main] [9:56:36:933] [Host.setupOIDCommandlineParameters:7186] m_unregWithdirService: false
    [main] [9:56:36:933] [Host.setupOIDCommandlineParameters:7187] m_updateDirService: false
    [main] [9:56:36:933] [Verifier.processRawConfigFile:3523] StorageType == 0
    [main] [9:56:36:933] [Verifier.setOradataDest:4349] setOradataDest:dfDest=D:\oracle\product\10.2.0\oradata
    [main] [9:56:36:933] [TemplateManager.updateDatafileDestination:1957] updateDatafiles:datafileDir=D:\oracle\product\10.2.0\oradata
    [main] [9:56:36:933] [TemplateManager.updateDatafileDestination:2103] From template, RedoLogGrName=1
    [main] [9:56:36:965] [TemplateManager.updateDatafileDestination:2118] new file name redo01.log
    [main] [9:56:36:965] [TemplateManager.updateDatafileDestination:2103] From template, RedoLogGrName=2
    [main] [9:56:36:965] [TemplateManager.updateDatafileDestination:2118] new file name redo02.log
    [main] [9:56:36:965] [TemplateManager.updateDatafileDestination:2103] From template, RedoLogGrName=3
    [main] [9:56:36:965] [TemplateManager.updateDatafileDestination:2118] new file name redo03.log
    [main] [9:56:36:965] [ProgressOnlyHost.performOperation:162] processRawConfigFile=false
    [main] [9:56:36:965] [Verifier.validateTemplate:1629] StorageType == 0
    [main] [9:56:36:965] [ProgressOnlyHost.performOperation:178] validateTemplate=true
    [main] [9:56:36:965] [OracleHome.isRacEnabled:149] bRacOn = false
    [main] [9:56:36:980] [Verifier.validateTemplate:1629] StorageType == 0
    [main] [9:56:36:980] [Verifier.calculateCloneDatafilePathsAndSizes:2951] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateCloneDatafilePathsAndSizes:2951] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateCloneDatafilePathsAndSizes:2951] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateCloneDatafilePathsAndSizes:2951] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateCloneDatafilePathsAndSizes:2951] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateRedoLogGroupFileSizes:3083] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateRedoLogGroupFileSizes:3083] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.calculateRedoLogGroupFileSizes:3083] canonicalPath=D:\oracle\product\10.2.0\
    [main] [9:56:36:980] [Verifier.getControlfFileSizes:3001] No. of Control files:=3
    [main] [9:56:37:105] [Host.executeSteps:4044] Executing steps....
    [main] [9:56:37:105] [Host.setUpForOperation:2920] setUpForOperation: Mode = 128
    [main] [9:56:37:121] [Host.executeSteps:4186] setupForOperation returned: true
    [main] [9:56:37:121] [Host.createStepSQLInterface:5948] sid =ora10g
    [main] [9:56:37:136] [SQLEngine.initialize:242] Execing SQLPLUS/SVRMGR process...
    [main] [9:56:37:136] [SQLEngine.initialize:270] m_bReaderStarted: false
    [main] [9:56:37:136] [SQLEngine.initialize:274] Starting Reader Thread...
    [Thread-4] [9:56:37:355] [StepContext$ModeRunner.run:2478] ---- Progress Needed:=true
    [Thread-4] [9:56:37:464] [BasicStep.execute:202] Executing Step : CLONE_DB_CREATION_RMAN_RESTORE
    [Thread-4] [9:56:37:464] [StepErrorHandler.setFatalErrors:322] setting Fatal Error: ORA-01092
    [Thread-4] [9:56:37:464] [StepErrorHandler.setFatalErrors:322] setting Fatal Error: ORA-01034
    [Thread-4] [9:56:37:464] [StepErrorHandler.setFatalErrors:322] setting Fatal Error: ORA-03114
    [Thread-4] [9:56:37:464] [StepErrorHandler.setFatalErrors:322] setting Fatal Error: ORA-12560
    [Thread-4] [9:56:37:464] [StepErrorHandler.setIgnorableErrors:250] setting Ignorable Error: ORA-01109
    [Thread-4] [9:56:37:464] [BasicStep.configureSettings:304] messageHandler being set=null
    [Thread-4] [9:56:37:464] [BasicStep.execute:202] Executing Step : INSTANCE_CREATION
    [Thread-4] [9:56:37:464] [BasicStep.configureSettings:304] messageHandler being set=null
    [Thread-4] [9:56:37:479] [InitParamAttributes.sortParams:3532] m_sortOn:-1 sortOn:4
    [Thread-4] [9:56:37:620] [OracleHome.isRacEnabled:149] bRacOn = false
    [Thread-4] [9:56:37:667] [Host.noEntryinOratab:5115] Check made for oratab arg passed............
    [Thread-4] [9:56:37:667] [Oradim.getAddEntryCommand:353] AddEntry=[D:\oracle\product\10.2.0\db_1\bin\oradim.exe, -new, -sid, ORA10G, -startmode, manual, -spfile]
    [Thread-4] [9:56:38:899] [Oradim.getEditEntryCommand:422] getEditEntry cmd=[D:\oracle\product\10.2.0\db_1\bin\oradim.exe, -edit, -sid, ORA10G, -startmode, auto, -srvcstart, system]
    [Thread-4] [9:56:39:55] [Oradim.addSidToRegistry:871] oracleHomeKey: SOFTWARE\ORACLE\KEY_OraDb10g_home1
    [Thread-4] [9:56:39:117] [BasicStep.configureSettings:304] messageHandler being set=oracle.sysman.assistants.util.UIMessageHandler@c73f0d8
    [Thread-4] [9:56:39:117] [CloneRmanRestoreStep.executeImpl:217] Instance Creation went fine..........
    [Thread-4] [9:56:39:117] [CloneRmanRestoreStep.executeImpl:224] db_recovery_file_dest=D:\oracle\product\10.2.0\flash_recovery_area
    [Thread-4] [9:56:39:117] [CloneRmanRestoreStep.executeImpl:227] db_recovery_file_dest_size=2147483648
    [Thread-4] [9:56:39:991] [SQLEngine.setSpool:1750] old Spool = null
    [Thread-4] [9:56:39:991] [SQLEngine.setSpool:1751] Setting Spool = D:\oracle\product\10.2.0\db_1\cfgtoollogs\dbca\ora10g\CloneRmanRestore.log
    [Thread-4] [9:56:39:991] [SQLEngine.setSpool:1752] Is spool appendable? --> true
    [Thread-4] [9:56:39:991] [CloneRmanRestoreStep.executeImpl:320] starting with pfile=D:\oracle\product\10.2.0\admin\ora10g\pfile\init.ora

    Check your SQLNET.AUTHENTICATION_SERVICES settings in sqlnet.ora file.
    ORA-28547 : Connection to server failed, probable Net8 admin error
    thanks
    http://swervedba.wordpress.com/

  • Oracle 10g xe 32 bit on windows server 2008 64 bit

    I have windows server 2008 64 bit and oracle 10g xe 32 bit
    does it work on ?
    I have tested but no success.
    Any one knows reasons

    You seem to have posted threads before on very similar topics, and you also posted this once in the appropriate forum:
    {thread:id=2270082}
    Please avoid duplicating posts!
    As already stated in one of your other threads, it is not a certified combination. Again, read the Installation Guide !
    If you want to play with it and try to make it "work", that's up to you. And as you say you have already tried, with "no success", it seems you already got an answer.
    I suggest you close this thread and continue in the dedicated 10g XE forum thread (or try the 11g XE Beta - only for 32-bit Windows yet, but there's a chance the general release will be aimed for Windows x64 as well).
    Edited by: orafad on Aug 20, 2011 1:14 PM

  • Copy of a DB in Oracle 10g Express edition

    Hi!
    I´m trying to copy a DB in Oracle 10g xe, bu i don´t have success. How do i can copy all the tables and the schema of a DB to other DB?
    Can someone help me in this task? Show me tutorials for this task can help very much.
    PS: My english is not so good.

    Are you going from an XE install to an XE install on another host? XE will only allow one database to run at a time, and if you want to keep the original instance intact you'll need a couple extra steps.
    The cold file copy method (with the database down) is generally easiest, no media recovery needed since the datafiles are closed and no changes in can take place- here's a page with step-by-step instructions: http://www.dba-oracle.com/oracle_tips_db_copy.htm

  • Create MVs in Oracle 10g DB from Oracle 9i DB using DB link

    The tables of an Oracle 10g database is formed mainly (about 90%) from materialized views. These views are created using a database link extracting the data from an existing Oracle 9i database (10g connecting to 9i).
    The MVs created from simple queries does not take much time, but whenever a query contains "joins", time freezes and after four hours no results are registered independently of the database volume or number of transactions.
    But in case the MVs are created in an Oracle 9i database (9i connecting to 9i), the full creation time varies from four minutes to twenty minutes (about 1,200,000 transactions).
    All possible scenarios related to hardware and networking were tested and excluded.
    The resolution of this issue is very urgent because it is preventing our institution from upgrading to Oracle 10g.

    Why post this one into the OTN Feedback Forum rather than a more appropriate like General Database Discussions ?<br>
    <br>
    Nicolas.

  • My computer slows down and hangs after installing oracle 10g

    My computer just slows down after installing oracle 10g. I have a pentium 4 3ghz with 512 memory (32 mb used by graphics built in card). It slows down and hanged even if I agjusted the swap memory to 800 mb. I have two swap file/page file - in drive c and drive d. I even cannot shut it down because it takes maybe 30 minutes just to see the "shut-off/log-off" screen.

    Before starting up Oracle, when you go to the task manager, how much RAM does it show actually free? 512 MB is pretty small to run Oracle in the first place-- Windows and Office can use a fair chunk of RAM themselves, depending on which Office apps you are running. You may also be suprised by the amount of RAM that a web browser, email client, and the various other apps that folks generally install can use.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Oracle Text in installing Oracle 10g without licence!!

    Hi. Everyone.
    I've read some thread , but I am still confused about "oracle text".
    Now, I am testing oracle10g database.
    I downloaded 10g software from www.oracle.com, and installed it sucessfully
    on windows xp.
    When I was trying to import a dump file from oracle9i to
    the unlicenced oracle10g database, I got the error , IMP-00017, which
    is related to "Oracle Text".
    I checked "dba_users" dictionary, but ctxsys user is locked and expired.
    I read some thread on this site, and according to the advice, I tried to
    enable oracle text, using "DBCA".
    However, every database option on DBCA is disabled, I was not able to
    check oracle text.
    Lastly, how can I enable "Oracle Text" with unlicenced oracle 10g ?
    Is this possible without licence?
    I am very confused about this.
    I am looking forward to hear your experience and advices.
    Have a nice day.
    Best Regards.
    Ho.

    Well, instead of being confused, you could go to http://www.oracle.com/pls/db102/portal.portal_db?selected=1 and look at
    1) the licensing document, which would tell you whether you need a separate license, and
    2) under the 'Books' tab, look at the Text Application Developer's Guide or the Text Reference manuals for details.
    You could also look for the Oracle Text forum (from the http://forums.oracle.com page, under Database - More, or Text and ask the people who concentrate on that set of features.
    In general, Oracle Text is a set of extensions, the definitions for which are stored under user ctxsys. You would use these extensions by creating your own objects that are based on the extensions.
    For example, suppose your tables contain varchar2 columns. Create indexes that are based on ctxsys's 'context index type' and your application can then use the 'CONTAINS' keyword search capability (which is effectively a ctxsys-owned extension to the select)
    However, you would never log on to ctxsys and do anythibng with that as you risk changing the template code that Oracle has supplied.
    Message was edited by:
    Hans Forbrich
    PS: Yes, Oracle Text is included as part of the base database. Most of it is even included in the free Oracle XE database.

  • Oracle 10g ODBC driver with Windows 7 32 bit connecting to Excel

    Hi Everyone,
    I'm having an issue connecting to our oracle 10g database (64 bit system) from a 32 bit windows 7 installation running excel 2010/2007 using odbc drivers. Our excel spreadsheets worked without issue in windows xp.
    In windows 7 I have been able to install the odbc driver via the following method:
    1. Download the oracle 'basic' client and oracle 'odbc' client from www.oracle.com and extract the contents:
    instantclient-basic-win32-10.2.0.3-20061115
    instantclient-odbc-win32-10.2.0.3-20061115
    2. Create a folder 'oracle' and place the instantclient_10_2 folder inside.
    3. Ensure all the basic and odbc files reside in this folder.
    4. Create a 'network' folder within instantclient_10_2
    5. Create an 'admin' folder within 'network'
    6. Create sqlnet.ora and tnsnames.ora files within the 'admin' folder:
    7. Run 'obdc_install' within the instantclient_10_2 folder
    8. Download and run the oracle odbc driver exe file from www.oracle.com (ORA10203.exe)
    9. Go to Control Panel -> Administrative Tools -> Data Sources and create a new System DN
    This allows excel spreadsheets connecting ONLY to oracle to function.
    Unfortunately some of our spreadsheets connect to both a MySQL database as well as oracle. Spreadsheets connecting only to MySQL also function correctly, however, as soon as the vb associated with a spreadsheet includes a mysql call followed by an oracle call the spreadsheets fail. In Excel 2007 excel crashes completely everytime. In Excel 2010 the mysql data is generated, then when the script hits to oracle odbc connection there is a long pause, the oracle ODBC driver connect pops up requesting a username/password (this didn't happen in xp), then the data source selection pops up, then the username/password connect screen pops up again, and finally it fails with a runtime error '1004' General ODBC error.
    If you look at the VB script it's failing at the Refresh BackgroundQuery statement in the ODBC connection block:
    With Worksheets("Oracle1").QueryTables.Add(Connection:= _
    "ODBC;DSN=Oracle_ODBC;UID=user;PWD=password;SERVER=ORACLE_LINUX;", _
    Destination:=Worksheets("Oracle1").Range("A1"))
    .CommandText = strSql
    .Name = "Oracle1_data"
    .FieldNames = True
    .RowNumbers = False
    .FillAdjacentFormulas = False
    .PreserveFormatting = True
    .RefreshOnFileOpen = False
    .BackgroundQuery = True
    .RefreshStyle = xlOverwriteCells
    .SavePassword = True
    .SaveData = True
    .AdjustColumnWidth = True
    .RefreshPeriod = 0
    .PreserveColumnInfo = True
    .Refresh BackgroundQuery:=False
    End With
    Does anyone know how to get around this? It's very important!!
    Also if you try to edit the oracle ODBC connections in Control Panels -> Administrative Tools -> Data Sources, ODBC crashes 95% of the time.
    Advice greatly appreciated!!

    Well, here's what I'd check anyway..
    1) get Process Explorer from http://sysinternals.com
    2) make a mysql connection, get a list of dll's loaded (include the location and version columns in the lower pane output)
    3) close that, then make an ora odbc connection, get a list of dlls.
    4) close that, then make a mysql connection followed by an ora odbc connection, get a list of dlls
    5) compare the lists of loaded dlls. In particular, the difference between #3 and #4, is there a dll dependency that gets loaded by oracle's odbc that comes from a different location when you've opened a mysql connection first?
    May or may not help, but might turn up a difference to help point you in a direction.
    Greg

  • Oracle database not starting up in oracle 10g RAC

    Hi!
    Recently I came across one problem with one node oracle 10g RAC.When the Oracle database is started,while opening it is giving ORA-03113:End of file on communication channel error.When I saw the the alert trace file and other trace files I found Disk group is exhausted error and it is not able to create .dbf files.Actually it is not a production server and I gave archive log destination in SAN.Even the spfile(content of init_database.ora) is in SAN..
    I tried Asmcmd utility to delete the archive log files.As the oracle is not available I am not able to asmcmd prompt.
    How to change the destination of archive log and to remove the old archive log files(as it is a testing environment we can remove) from SAN?Please let me know.
    Thanks & Regards
    Srikanth MVS

    keithrust wrote:
    On VMware there's a known issue with Oracle databases on a Windows client not starting up properly all the time and a manual startup using oradim -start -sid <whatever> is required to get it fully running. Hmmm, doing it several time, and never seen such issue. Which "known issue" and by who are you talking about ?
    I created a brand new Oracle VM Windows 2003 32-bit server, installed the Oracle drivers for paravirtualization, and whammo, the problem is still hereI'm sure, you miss something somewhere in the config. Right now, you're on supported configuration, you could either raise a SR to the support, or get help from your peer on Oracle Database General forum.
    Ah, but it's not a Windows issue. On a non-VM Windows box the database starts just fine all the time. Again, this is a known issue acknowledged by Oracle on the VMware side, I'm just surprised it exists on the Oracle VM side.Again, give more details about this "known issue". Never heard about that, eventhough I've been around for years.
    I was afraid you were going to ask that. I'll have to search for it again, but I think you can do the same as well....Well, I doubt you could find a Metalink note about Oracle on VMWare. So far, Oracle has always refused to support database on OS virtualized on VMWare (or any VM software other than Oracle VM). Based on that, you could be sure, your "known issue" is not an issue on Oracle VM.
    If you want more help, again, give more details about your issue.
    Nicolas.

Maybe you are looking for