Oracle sql for data after the first occurrence of the hyphen

Hi, I need oracle sql get data after the first occurrence of the hyphen.

source of the string:
ABCD - efgh

I just want everything after the ' - '.

someone help me please...

Edited by: 1001076 on 28 may 2013 18:42

Handle: 1001076
Status level: Beginner
Join date: April 18, 2013
Messages total: 12
Total Questions: 4 (3 pending)

I offer you my condolences; Since you rarely get your questions answered here.

Tags: Database

Similar Questions

  • Oracle SQL Developer Data Modeler start error

    Hi all

    I just downloaded Oracle SQL Developer Data Modeling (2.0.0.57.0) [released July 1, 2009] by selecting the option ' Oracle SQL Developer Data Modeler for Windows (this zip file contains the JRE).

    After that I installed the same and tried to start clicking on datamodeler.exe, I get the following error message

    "Failed to create an instance of the JVM on the path:... \jdk\jre\bin\client\jvm.dll.

    On the same machine, I can successfully run the SQL Oracle program without error. My machine is having Windows XP Professional SP3.

    Any ideas? If there is a problem with Java, that of the Oracle SQL Developer should also not run. But as I said it runs with any error, but the Oracle SQL Developer Data Modeler gives the above error.

    Kind regards

    JAA149

    Hey Jawad,

    you wrote you have 960 MB of RAM - how did you do a test with 1.5 MB of RAM and 2 MB of RAM?
    No doubt this is a problem of memory - memory change in the datamodeler.conf file option:
    -There 'AddVMOption-Xmx768M"by default; to take
    -"AddVMOption-Xmx512M" or never, making it suitable for your configuration - you can check the available free memory first.

    Philippe

  • SEVERE: Exception initialization 'oracle.dbtools.crest.fcp.DataModelerAddin' extension ' Oracle SQL Developer Data Modeling

    After some testing today with a new installation and plugin subversion in the latest edition of data Modeler this error happens with every start of the tool.

    Have removed and unzipped the installation once again without changing the error.

    After that, I started with another user on my computer, it the error does not occur.

    Is there a system folder to remove the configuration of my personal like jdeveloper and sql developer?

    I lose the most important features, for example. have no browser and cannot open a design.

    Here is the full error stack:

    29 may 2015 22:17:40 oracle.ideimpl.extension.AddinManagerImpl

    SEVERE: Exception initialization 'oracle.dbtools.crest.fcp.DataModelerAddin' extension ' Oracle SQL Developer Data Modeling

    java.lang.NullPointerException

    at oracle.dbtools.crest.swingui.editor.UDPLibrariesPersistence.load(UDPLibrariesPersistence.java:220)

    at oracle.dbtools.crest.model.design.DesignSet.createElement(DesignSet.java:56)

    at oracle.dbtools.crest.swingui.ApplicationView.addDesign(ApplicationView.java:2497)

    to oracle.dbtools.crest.swingui.ApplicationView. < init > (ApplicationView.java:435)

    to oracle.dbtools.crest.swingui.ApplicationView. < init > (ApplicationView.java:389)

    at oracle.dbtools.crest.swingui.ApplicationView.getInstance(ApplicationView.java:2258)

    at oracle.dbtools.crest.fcp.DataModelerAddin.initialize(DataModelerAddin.java:553)

    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManagerImpl.java:496)

    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManagerImpl.java:483)

    at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManagerImpl.java:299)

    at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:160)

    at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(AddinManagerImpl.java:143)

    at oracle.ide.IdeCore.initProductAndUserAddinsAndActionRegistry(IdeCore.java:2294)

    at oracle.ide.IdeCore.startupImpl(IdeCore.java:1817)

    at oracle.ide.Ide.startup(Ide.java:772)

    at oracle.ide.osgi.Activator.start(Activator.java:209)

    to org.eclipse.osgi.framework.internal.core.BundleContextImpl$ 1.run(BundleContextImpl.java:711)

    at java.security.AccessController.doPrivileged (Native Method)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)

    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)

    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)

    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)

    at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)

    at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)

    at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)

    at org.netbeans.core.netigso.Netigso.start(Netigso.java:191)

    at org.netbeans.NetigsoHandle.startFramework(NetigsoHandle.java:209)

    at org.netbeans.ModuleManager.enable(ModuleManager.java:1352)

    at org.netbeans.ModuleManager.enable(ModuleManager.java:1156)

    at org.netbeans.core.startup.ModuleList.installNew (ModuleList.java:340)

    at org.netbeans.core.startup.ModuleList.trigger (ModuleList.java:276)

    at org.netbeans.core.startup.ModuleSystem.restore (ModuleSystem.java:301)

    at org.netbeans.core.startup.Main.getModuleSystem (Main.java:181)

    at org.netbeans.core.startup.Main.getModuleSystem (Main.java:150)

    at org.netbeans.core.startup.Main.start (Main.java:307)

    at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)

    at java.lang.Thread.run(Thread.java:745)

    Hi Torsten,

    Thanks for reporting the problem. I logged a bug.

    You can view together as "list of system types" directory to "preference > Data Modeler"-probably no longer exists. I guess that the setting for this directory is empty when you start SQL Dev as a different user.

    Philippe

  • Vista goes to 50% CPU usage and connects the computer for hours after the beginning

    Original title: Vista processor

    Stupid Vista goes to 50% CPU usage and connects the computer for hours after the start.  Cannot run anything with any request of CPU without getting bogged down and crashing.  It is not windows defender, I suspend this service and the machine is ok for another 1/2 hour, them I'm up to 50% of the CPU.  The idle process said Task Manager is > 90%, still indicates 50% CPU usage and the cooling fan looks like a 747 taking off.  Should I just pull the machine and go for Linux, or what?  Cannot run games or whatever it is, totally disgusted with vista of POS and microsoft can it Deep and do not get windows 7, it is probably worse.  Is that all I can turn off to get the same performance than, say, windows 3.1?  It would be preferable to the current situation.  MSCKMA.

    Hello

    What antivirus/antispyware/security products do you have on the machine? Be one you have NEVER
    on this machine, including those you have uninstalled (they leave leftovers behind which can cause
    strange problems).

    ----------------------------------------------------

    Follow these steps:

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    ==========================================

    After the foregoing:

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135
    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062
    To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
    Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
    reference (if you have a small box at the bottom left - show for all users, then check that).

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    A quick check to see that load method 2 is - using MSCONFIG then put a list of
    those here.
    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out what files, key of registry and other objects processes have opened.
    What DLLs they have loaded and more. This exceptionally effective utility will show you even who has
    each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to start automatically when you start your system
    and you log in. Autoruns also shows you the full list of registry and file locations where applications can
    Configure auto-start settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
    Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    -Free - WhatsInStartUP this utility displays the list of all applications that are loaded automatically
    When Windows starts. For each request, the following information is displayed: Type of startup (registry/Startup folder), Command - Line String, the product name, Version of the file, the name of the company;
    Location in the registry or the file system and more. It allows you to easily disable or remove unwanted
    a program that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe not. The window
    Watcher says it all, reporting of any window created by running programs, if the window
    is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    ===========================================

    Vista and Windows 7 updated drivers love then here's how update the most important.

    This is my generic how updates of appropriate driver:

    This utility, it is easy see which versions are loaded:

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system.
    For each driver in the list, additional useful information is displayed: load address of the driver,
    Description, version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    For drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
    Control Panel - device - Graphics Manager - note the brand and complete model
    your video card - double - tab of the driver - write version information. Now, click on update
    Driver (this can do nothing as MS is far behind the certification of drivers) - then right-click.
    Uninstall - REBOOT it will refresh the driver stack.

    Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
    with their own software and drivers and all other main drivers that you have.

    Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
    Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
    BIOS, Chipset and software updates on the site of the manufacturer of the system here.)

    Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
    each installation.

    Always check in the Device Manager - drivers tab to be sure the version you actually install
    presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
    in particular that) so to install a driver - reboot - check that it is installed and repeat as
    necessary.

    Repeat to the manufacturers - BTW in the DO NOT RUN THEIR SCANNER device - check
    manually by model.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    If you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
    Updates, that leaves about Windows updates but it will not install the drivers that will be generally
    older and cause problems. If updates offers a new driver and then HIDE it (right click on it), then
    get new manually if you wish.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    ===========================================

    Refer to these discussions because many more excellent advice however don't forget to check your antivirus
    programs, the main drivers and BIOS update and also solve the problems with the cleanboot method
    first.

    Problems with the overall speed of the system and performance
    http://support.Microsoft.com/GP/slow_windows_performance/en-us

    Performance and Maintenance Tips
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/19e5d6c3-BF07-49ac-a2fa-6718c988f125

    Explorer Windows stopped working
    http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/6ab02526-5071-4DCC-895F-d90202bad8b3

    Hope these helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Access to the data after the managed service VOImpl in bean method call

    I use JDeveloper 11.1.2.4.

    I created a method to Interface customer and he calls you a managed bean.

    The method is exposed in the control of data and I have a links to it through links on the page.

    The method runs just a view of criteria for a row of data in the database.

    But, because the method does not have a return value, how could access the View object data.

    Here's the Service method and the method of the bean management;

    The service method: in PersonVOImpl.java - should result in 1 row:

    public void getPersonByCnViewCriteria (String cn)

    {

    ViewCriteria viewCriteria = this.getViewCriteria ("PersonVOCriteriaByCn");

    Reset a display criteria of values that may was resolved at design time

    viewCriteria.resetCriteria ();

    this.setCnBind (cn);

    this.applyViewCriteria (viewCriteria);

    this.executeQuery ();

    }

    Method in managed Bean: I have a linking operation method to access the Service method.


    It seems that the Service method is executed successfully.  But, how to access the data after the call?


    protected void getPersonByCn (String cn)

    {

    BindingContainer bindingContainer = this.getBindings ();

    OperationBinding operationBinding = bindingContainer.getOperationBinding("getPersonByCn");

    Map operationsParamsMap = operationBinding.getParamsMap ();

    operationsParamsMap.put (WorkFlowBean.PROPERTY_CN, NC);

    Object result = operationBinding.execute ();

    If (! operationBinding.getErrors () .isEmpty ())

    {

    }


        // How to access data after the call?

    }

    You should never use a class VOImpl or VORowImpl in a managed bean. If you have to use them, create Interfaces and use.

    I'm not too sure if it's good to return a view in a method object.

  • should my time capsule be connected with a cable for backups, after the initial installation?

    should my time capsule be connected with a cable for backups, after the initial installation?

    If you mean that you have to keep your Mac connected to a Time Capsule via Ethernet for future backups, then the answer is no. Time Machine and time Capsule are designed to work over wireless for your Mac would just need to be connected to the wireless network provided by the time Capsule.

  • I have Windows vista Ultimate edition. but he started asking for activation after the windows update while it has already been activated before the update.

    I have Windows vista Ultimate edition. but he started asking for activation after the windows update while it has already been activated before the update.

    Hello, Pichon,

    If Windows Vista application unexpected activation

    On rare occasions, you may be prompted to activate Windows Vista on a computer that did not previously require Windows Vista activation or has already been activated successfully. For example, this may occur on a computer on which Windows Vista was preinstalled by an OEM installation or Volume licensing and are major hardware changes occurred, such as upgrading the hard disk and memory at the same time.

    If you are prompted to reactivate Windows Vista, you can do this by using the Windows Activation Wizard to:

    1. Click Start, and then click computer.
    2. Click System Properties on the toolbar, and then click click here to activate Windows now in the Windows activation area. If you are prompted for an administrator password or a confirmation, type the password, or click continue.
    3. Select the Windows Vista activation method that you want, and then follow the instructions.

    To avoid this problem in the future, obtain the latest service pack for your version of Windows Vista, either through automatic updates or direct download.

    To update to Windows Vista and prevent this activation problem does not happen:

    1. Click Start, click all programs, and then click Windows Update.
    2. Click find updates.
    3. As soon as Windows Vista found the updates, click the install updates button.

    How to activate Windows Vista

    http://support.Microsoft.com/kb/940315

    Activation fails when you try to activate Windows Vista, Windows 7, Windows Server 2008 or Windows Server 2008 R2 on the Internet

    http://support.Microsoft.com/kb/921471

  • Is it possible to recover data after the factory restore?

    Hi, I have laptop G62-340US and I use windows 7 64-bit. I am having trouble with streaming online videos, and whenever I start my computer, it shows a kind of errors, so I thought to restore my computer to factory setting. But I have some data inportant on my computer. I've been me request so if it is possible to recover data after the factory restore or I do something that restor factory will not delete my data?

    Hello

    You will need to back up all your personal files, etc. before executing a factory reset - an option to do this is to use the facilities available in Windows 7, as described in the guide on the link below.

    http://www.howtogeek.com/HOWTO/1838/using-backup-and-restore-in-Windows-7/

    Kind regards

    DP - K

  • Where the SQL Scripts running after the installation of the ODAC for Oracle Client?

    I just installed ODAC for Oracle Client on a windows server that runs a database of sql server, allowing developers to connect to a web application to an Oracle/Unix database. The installation States to run SQL scripts, located in the $ORACLE_HOME\ASP.NET\SQL directory after installation. I don't know where to run them? On the ORACLE DB on the Unix server? If someone could let me know, I'd appreciate it. Thank you.

    You must run on the Oracle database server, but they are necessary only if you use Oracle for ASP.NET providers.

    If you just install the software, so you can use OLEDB with SQL Server linked server, for example, you don't need them. What do you need to run although if this is the case is the oramtsadmin.sql script that creates the objects used by the Oracle MTS Recovery Service (if you do not have these objects created on the database) that SQL Server uses a distributed transaction for Oracle connections I think.

    It will be useful,
    Greg

  • Load of LKM for data in the Oracle database

    My source and target are Oracle DB. Source table is to have 1 m + data. I'm looking for LKM that use Oracle Bulk insert utility to load this data into the target table. But I can't find such a for Oracle is database MSSQL (LKM SQL for MSSQL (Bulk)). Please tell me if there is no such LKM in the case of targets Oracle DB.

    Yes. There are.
    I think you missed this one: LKM Oracle for Oracle (DBLINK) .xml

  • Procedure for recovering data after the lost startup disk

    I just lost my boot drive 2 OCZ 80 gig vertex. The pixelated screen and went to black. I tried to restart without result. I used my system drive to start in revover5y mode. Using the command prompt I could not recognize the boot drive (drive C)

    I dig my OEM drive and is my sticker with the kay. Then, I went out and bought a new Samsung 850 pro (128 GB).  I thought I have to load windows on the new C and go on my different readers of data cleaning. I am a heavy user of photoshop and lightroom and I luckily my backups photo on WD hards, including hd 2 backup (no SSD)

    I built my own computers since the middle of the 1980s, but at 70 I've gotten a little rusty. I am also on some bad drugs that create some short-term memory problems.  I am accepting the unfortunate change of circumstance and I realize it's better to think I could handle everything smoothly. I've never had to reauthorize a boot disc in ofr all these years so I'm a little worried by Microsoft that addresses... This construction was 64 bit win 7 with 12 GB of ram a bunch a ssd 240 GB for ongoing work and a 60 GB SSD as frayed drive 80 GB, and hides.

    I have a 1 to black for data and I also loaded programs essential speed not on my boot drive was loading a touch too fast. I have 2 1 TB backup in ra 4 Bay unit removable unit. Computers can be fun but it's rough having to be an expert every 3 or 4 years.

    I don't know where I have it loaded some of my criticisms (MScontin will do that) programs may be on the C or the 240 GB SSD which still lives. I'm better off which separates data and do a cleanh installation of all programs (photoshop, lightroom and a few other photographic utilities). I have my photo files saved in triplicate, with the exception of my l; AST 2 outputs.  Wise data I should be fine.

    Thanks in advance for your suggestions. I want tro requirments rebuild the wi8th of Microsoft computing for a re authorization in mind. Also I'm not sure if I need to delete all data and reformat disks that have any executable.

    Critical element in terms of licenses is the motherboard, if you change this, then you do not have the right to be re - authenticate the license.

    The other setting used to be cumulative and it was not always clear when the licenses would fail. However, by this time the rule on the motherboard was not clearly defined so now we have this stated limitation then although other changes trigger a new authentication you will be able to do.

    The fact that the exchange of the card has not solved the problem of network would indicate that it is not material. Yes serving drivers can be less easy, but it is more likely to have problems of Protocol if anything. The 32/64 bit point is irrelevant.

    And Yes, I would like to start a new thread to allow the network to identify the issue of the guru.

  • The using Excel and Oracle SQL Developer data import - I need help

    Dear friends,

    I use Oracle SQL Developer 1.5.1 and I need to import an Excel file into a database table. If I try to import this file into XLS format, fields and headers are properly presented and separated, but if I press the button 'Next', it does nothing - it remains stopped.

    I did some research here in this forum and it seems to me that when you try to import a file via the XLS format, Developer SQL has bugs. Is this correct?

    If I save the same file in the CSV format and try to import the same file, it moves forward, but SQL Developer is not separating headers and fields correctly. It includes all CSV fields into one - say Column0 and fields 1. TEST; 01/01/2000 under the same Column0.

    Save the file in the CSV format is not a problem, by taking a little time. But I don't know how to make Developer SQL import correctly. Could someone help me please? Thanks in advance.

    Best regards

    Franklin

    This is a known bug in 1.5.1 so use 1.5.0 to import from Excel.
    With respect to the CSV, make sure that you have the right setting in the Preferences - Database - settings of export of genres - delimiter of export custom .

    Have fun
    K.

  • Challenges using dynamic SQL for data quality tests

    (published for the wrong forum)

    Background:

    I'm developing a data quality, mechanism, on Oracle 11 g, which uses five blocks of PL/SQL by test test script:
    < li > two to supervise the event test by inserting a record in this regard in a fact table and update after the test with the result of the counts;
    table < li > two to create an image "should be" of the tested data set and store it in a scene.
    < li > and the remaining block to perform the analysis by selecting a union of the staging table data and the data "such what" of the target table, abandoning all matching files so that only incompatibilities (errors) remain and store this information in a results table, labeled with either recording source "should be" ("should be") or target ("such what").

    I intend to do this pilot by the data, so that each block is stored as a value in an array of scripts, associated with one or more test scripts through the record key values and pulled in a SQL statement execution by a stored procedure in a package called by Informatica Oracle dynamic. In this way, a variety of data quality tests can be programmed as automated controls that work every night and trigger alerts if problems are detected.

    I have two challenges:
    < li > PL/SQL blocks that create the DataSet "should be" can be very long, and I learned through Discussion Forums OTN size maximum of 32767 K for a string of PL/SQL variable cannot be large enough to fit the entire block, and the EXECUTE IMMEDIATE statement accepts not the CLOB.
    < li > if there is no anomaly, the trick of COUNT () ON the PARTITION that I use to get the counts of subquery won't work, because the analysis block everything is an INSERT INTO < i > < /i > table (column1, Column2, etc.) SELECT (< i > < /i > comparison query) statement, to avoid that my duty to hit the table target several times. My approach to this is driven by performance problems.

    First question: can I I EXECUTE IMMEDIATE nest, so that the SQL block running offers another EXECUTE IMMEDIATE statement that calls another block of SQL? This would solve my problem first.
    Second question: what is the way most effective to get the record account of subqueries in an INSERT INTO (SELECT) statement? I feel I'm too close the code to see the obvious answer here.

    Here is a shell of the block analysis ((deuxieme question):
    DECLARE
    
    StartDate DATE;
    EndDate DATE;
    TEST_KEY NUMBER;
    
    BEGIN
    
    INSERT INTO TEST_EVENT_DETAIL 
        (TEST_EVENT_KEY,TEST_EVENT_DETAIL_KEY,COLUMN1,COLUMN2,COLUMN3,COLUMN4,
        COLUMN5)
    SELECT
        TEST_KEY as TEST_EVENT_KEY,
        TEST_EVENT_DETAIL_SEQ.NEXTVAL AS TEST_EVENT_DETAIL_KEY,
        RESULTS.TABLENAME as COLUMN1,
        RESULTS.COLUMNNAME1 as COLUMN2,
        RESULTS.COLUMNNAME2 as COLUMN3,
        RESULTS.subqry_count as COLUMN4,
        null as COLUMN5  -- there are more generic columns, this is just an example; columns not used by a particular test are filled with nulls
    FROM
    (SELECT MIN(TABLENAME) as TABLENAME,
        min(subqry_count) as subqry_count, 
        COLUMNNAME1,
        COLUMNNAME2
      FROM 
    (SELECT TABLENAME as TABLENAME,
        count(TABLENAME) over (partition by TABLENAME) subqry_count,
        COLUMNNAME1,
        COLUMNNAME2
      from
    (
    /** Source Data **/
     SELECT 'SOURCE' as TABLENAME,
        COLUMNNAME1,
        COLUMNNAME2
       FROM TEST_EVENT_STAGE A
     WHERE A.TEST_EVENT_KEY=TEST_KEY
      UNION ALL
    /** Target Data **/
      SELECT 'TARGET' as TABLENAME,
        COLUMNNAME1,
        COLUMNNAME2
      FROM TABLENAME B
      WHERE ____________
    ) TMP
    )
    GROUP BY COLUMNNAME1, COLUMNNAME2
    HAVING COUNT(*) = 1 -- this drops out all records that don't match
    ORDER BY COLUMNNAME1, COLUMNNAME2, TABLENAME ASC
    ) RESULTS;
    
    END;
    and here's some pseudocode for the stored procedure that would call the PL/SQL (first question) blocks:
    Declare
    
    TestProcessStart DATE;
    TestKey     NUMBER;
    StartDate      DATE;
    EndDate      DATE;
    BlockStatus        varchar2(200);
    BlockSQL        varchar2(32767);
    
    begin
     
    Set BlockSQL=(select SCRIPT_BLOCK from DIM_SCRIPTS where SCRIPT_KEY=(select SQL_BLOCK2 from DIM_TEST where TEST_KEY=TestKey));
    
    execute immediate 'begin ' || BlockSQL || '; end;'
       using in BlockSQL, in out BlockStatus ;
    
     if BlockStatus != 'OK' then
        dbms_output.put_line('error');
     end if;
    end;
    Any ideas/recommendations?

    PL/SQL blocks that create the data set "should be" can be very long, and I learned through the Forums of Discussion OTN 32767 K maximum size for a string of PL/SQL variable cannot be large enough to fit the entire block, and the EXECUTE IMMEDIATE statement does not accept the CLOB.

    Not in 11g more: EXECUTE IMMEDIATE statement:

    »
    dynamic_sql_stmt

    Literal string, string variable or string expression representing a SQL statement. Its type must be CHAR, VARCHAR2 or CLOB.
    «

  • Incompatible control file and the data after the backup files

    The company that I work has servers where some components are new more, so have a backup in the event of hardware failure. If we intend to do some clones of 1:1 of the current servers to change them in case of emergency. As most of the necessary data is not volatile and we reset stuff in any case, there is no need of replicaton, replace an old version of the database works very well. Now we could not easily get substitutes for our old material, so we had to set up new machines. And that's where my trouble starts, because now I had to actually set up the system and the database rather than do a simple copy of byte to byte. I'm mainly a programmer, using Oracle of 'other' side, but as our DBA is yet to come and the work must be done now...

    So I did some reasearch and decided to do a normal backup of the cold. I have dumped the controlfile, copied data and configuration files to the new server and read the prompt SQL (no mistake there) control file. After some initial hiccups with the system (memory, etc.), I was finally about to start the database, only to get an error ORA-01190 ("1 database or control file is from before the last RESETLOGS").

    I guess I did is a bad thing when you restart the database (used the wrong part of the control file) or when the copy of the data. The original data have split two readers for simplicity and logical, I copied their entire contents. So maybe I don't not copied to little but too?

    As I said in the introductory paragraph, I'm not a DBA, but I'm willing to learn and listen. I don't expect a complete solution, but some guidelines when to look and what to avoid. Any help on this would be appreciated.

    Currently, there are some points need clarification,

    1. you don't need to re-create the control file, if you have a clean shutdown database and copied all the files at the same time (data files, control files etc.)

    2. If you stop DB, copied files of data but do not copy the control at shutdown file, you must re-create the control file.

    3. the error ORA-19909 suggested you resetlog prior to recovery.

    ORA-19909: string data file belongs to an orphan incarnation
    Cause: The data file specified has been restored from a backup that was taken during a period of time that has already been abandoned by a resetlogs operation or Oracle cannot identify what incarnation of database file belongs. The alert log contains more information.
    Action: Restore a backup of this file that belongs to the current or a previous incarnation of the database. If you use RMAN to restore, RMAN automatically selects a good backup.

    4. it would be better that again follow you from scratch the article.

    for example,.

    Copy the files you did copy over the data base to the bottom of the old server,
    modify the control file creation script

    RECOVER DATABASE USING BACKUP CONTROLFILE;
    ALTER DATABASE OPEN RESETLOGS;

  • P20: Can I recover the data after the recovery procedure?

    Hello
    I have a toshiba P20, when I buy, I made 2 partitions, C program and the BONES and F to my personal data.

    I use the restore tools toshiba to restore my windows XP OS, but the restore tools has also reset my partition table and I don't know if I can restore my personal data.

    Everything is done in one step and I saw no warning to say that my partition table will be reset?

    It's just a fdisk or a format really has been done.

    Can I use a tools for restore my partition to lose data?

    I hope that there is an acceptable solution to this problem and in a near future, I'll buy an external HD to perform the backup.

    Hello Alex

    If you want to preinstall the device with the recovery media, you can do this in two different ways:
    -standard mode will be formatted the whole HARD disk and after the procedure of recovery on the HARD drive is just a single partition.
    -expert mode using this mode, you can create partitions if the HARD disk has only one, and you will be able to install the OS on the first partition (the other guy)

    Of course, you did using the standard mode and now the whole HARD disk is formatted. I'm not 100% sure, but in this case only fast format is done before the beginning of the procedure of the facilities. Try to find (Google) if there is a tool that can help you verify if all the data is gone. Using recovery media there is no way to do it.

    Drive external HARD is the right solution for the data backup.

    Good bye

Maybe you are looking for