SQL PRO AND ORACLE SQL URGENT HELP

Can any one help me out here withe these questions:
Pro C Qusetions:
1.     What are the SQLCA and SQLDA ?
2.     What is a mutating table ?
3.     What are indicator variables and how are they used ?
4.     What are the components of the Oracle VARCHAR type and how should such a structure be loaded into a C Char type ?
5.     Why would you use the ‘ALTER SESSION’ command in conjunction with the tkprof program and what is the purpose of each step ?
ORACLE SQL QUESTIONS:
1.0     How would you move data from one Oracle database to another Oracle database?
2.0     How would you import data into an Oracle database from another DBMS or flat file?
3.0     What is an Outer Join and how does the output differ from a simple join?
4.0     What is the difference between the conditional expressions IN and EXISTS ? In what circumstances would you USE EACH.
5.0      You cannot create a unique index on a table due to duplicate values. Describe how you find the offending row and subsequently delete it.

1. What are the SQLCA and SQLDA ?
SQLCA = SQL Communications area: stores status variable and error message text. manual reference
SQLDA = SQL Descriptor Area - stores information about bind variables. manual reference
2. What is a mutating table ?
A table that is being modified and that you are trying to select from. Usually encountered in a before insert/update trigger when trying to select from the table that is being inserted/updated, which causes the dreaded ORA-04091 error.
3. What are indicator variables and how are they used ?
Used in Pro*C to tell if the table column contains the value NULL.
4. What are the components of the Oracle VARCHAR type and how should such a structure be loaded into a C Char type ?
varchar2 is a null-terminated string. Use Pro*C extended type VARCHAR. Manual Reference
5. Why would you use the "ALTER SESSION" command in conjunction with the tkprof program and what is the purpose of each step ?
Use alter session to set tracing on for your session:
alter session set sql_trace = true ;
this will create a trace file in the user dump destination
(select value from v$parameter where name = 'user_dump_dest'). Use tkprof to format the trace file.
1.0 How would you move data from one Oracle database to another Oracle database?
Export / Import Oracle utility, Database link and INSERT ... SELECT ..., Database link and COPY command, save to flat file and use SQL*Loader, transportable tablespaces, database "cloning" by copying database files over to a new server and creating a new instance based on those files. List of manuals look up CREATE DATABASE LINK in the SQL Reference, COPY command in the SQL*Plus reference, Export/Import or SQL*Loader in the Utilities manual.
2.0 How would you import data into an Oracle database from another DBMS or flat file?
SQL*Loader Oracle Utility
3.0 What is an Outer Join and how does the output differ from a simple join?
An example is worth 1000 words.
SQL> select * from emp ;
   EMP_NO EMP_NAME     DEPT_NO
        1 SMITH              1
        2 JONES              1
        3 BROWN              2
        4 BOND               5
SQL> select * from dept ;
  DEPT_NO DEPT_NAME
        1 SALES
        2 MARKETING
SQL> -- inner or "ordinary" join
SQL> select a.emp_name, b.dept_name
  2  from emp a, dept b
  3  where a.dept_no = b.dept_no ;
EMP_NAME   DEPT_NAME
SMITH      SALES
JONES      SALES
BROWN      MARKETING
SQL> -- outer join
SQL> select a.emp_name, b.dept_name
  2  from emp a, dept b
  3  where a.dept_no = b.dept_no (+) ;
EMP_NAME   DEPT_NAME
SMITH      SALES
JONES      SALES
BROWN      MARKETING
BOND5.0 You cannot create a unique index on a table due to duplicate values. Describe how you find the offending row and subsequently delete it.
Using exceptions clause of enable constraint
ALTER TABLE employees
ENABLE VALIDATE CONSTRAINT emp_manager_fk
EXCEPTIONS INTO exceptions ;
Find rowids in exceptions table and use those rowids to delete the "bad" data. See SQL reference on alter table for more details.

Similar Messages

  • b font color ='red' Java JDBC and Oracle DB URGENT HELP PLEASE /font /b

    Hello, I am a newbie. I'm very interested in Java in relation to JDBC, Oracle and SAP.I am trying to connect to an Oracle DB and I have problems to display the output on the consule in my application. What am I doing wrong here . Please help me. This is my code: Please Explain
    import java.sql.*;
    import java.sql.DriverManager;
    import java.sql.Connection;
    public class SqlConnection {
         public static void main(String[] args) {
              Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
              Connection con = DriverManager.getConnection
              ("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"); //making the connection.
              Statement stmt = con.createStatement ();// Sending a query to the database
              ResultSet rs = stmt.executeQuery("SELECT man,jean,test,kok FROM sa_kostl");
              while (rs.next()) {
                   String man = rs.getString("1");
                   String jean = rs.getString("2");
                   String test = rs.getString("3");
                   String kok = rs.getString("4");
                   System.out.println( man, jean, test,kok );//here where my the
                                                 //compiler gives me errors
              stmt.close();
              con.close();
    }

    <b><font color ='red'>Java JDBC and Oracle DB URGENT HELP PLEASE</font></b>Too bad your attempt at getting your subject to have greater attention failed :p

  • [b]Java JDBC and Oracle DB URGENT HELP PLEASE[/b]

    Hello, I am a newbie. I'm very interested in Java in relation to JDBC, Oracle and SAP.I am trying to connect to an Oracle DB and I have problems to display the output on the consule in my application. What am I doing wrong here . Please help me. This is my code: Please Explain
    import java.sql.*;
    import java.sql.DriverManager;
    import java.sql.Connection;
    public class SqlConnection {
    public static void main(String[] args) {
    Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
    Connection con = DriverManager.getConnection
    ("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"); //making the connection.
    Statement stmt = con.createStatement ();// Sending a query to the database
    ResultSet rs = stmt.executeQuery("SELECT man,jean,test,kok FROM sa_kostl");
    while (rs.next()) {
    String man = rs.getString("1");
    String jean = rs.getString("2");
    String test = rs.getString("3");
    String kok = rs.getString("4");
    System.out.println( man, jean, test,kok );//here where my the
    //compiler gives me errors
    stmt.close();
    con.close();
    }

    Hello, I am a newbie. I'm very interested in Java in
    relation to JDBC, Oracle and SAP.I am trying to
    connect to an Oracle DB and I have problems to
    display the output on the consule in my application.
    What am I doing wrong here . Please help me. This is
    my code: Please Explain
    import java.sql.*;
    import java.sql.DriverManager; <--- Why do you have these (java.sql.* is enough)
    import java.sql.Connection;
    public class SqlConnection {
    public static void main(String[] args) {// Where's the try/catch block?
    >
    Class.forName("oracle.jdbc.driver.OracleDriver");
    //Loading the Oracle Driver.
    Connection con = DriverManager.getConnection
    ("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"
    ); //making the connection.
    Statement stmt = con.createStatement ();// Sending a
    query to the database
    ResultSet rs = stmt.executeQuery("SELECT
    man,jean,test,kok FROM sa_kostl");
    while (rs.next()) {
    String man = rs.getString("1");
    String jean = rs.getString("2");
    String test = rs.getString("3");
    String kok = rs.getString("4");
    System.out.println( man, jean, test,kok );//here
    where my the
    //compiler gives me errors
    stmt.close();
    con.close();
    }The compiler is probably complaining about the lack of a try/catch block.
    The fact that you can't understand the compiler messages, and didn't read the javadocs enough to know that you needed a try/catch block, suggest to me that you need to learn a lot more about Java. This is pretty fundamental stuff.
    When you have problems, it's best to include information about what the compiler or runtime is telling. Error messages and stack traces are helpful.
    In your case the error is so elementary that more information isn't necessary.
    %

  • Problem connecting Crystal reports 10 to Oracle 9, urgent help needed

    Post Author: SemV
    CA Forum: Data Connectivity and SQL
    I am working with Crystal reports Developer 10, connecting  it to different native and ODBC datasources, everything working fine, exept the case when I am trying to connect to Oracle 9 ( I tested it with Oracle 10  - got the same result) through ODBC driver. I am getting list of users of specified Oracle DB, but instead of further division on Tables, Stored procedures, Views and Qualifiers for certain user, I am gettting plain list of stored procedures, without possibility to select certain table I need. When trying to connect on the same machine, with the same Crystal and Oracle client installation trough native Oracle driver it works fine.
    I tried to download and use last version of the Oracle ODBC drivers for Oracle 9.2 from Oracle web-site, but it didn't work and I got message about odbc driver internal error.
    Can anyone, pls, suggest, what the might be a reason for the problem and what can I do to fix it or to try to fix it.

    Post Author: synapsevampire
    CA Forum: Data Connectivity and SQL
    Oracle ODBC is more problematic, why not use native?
    If you want additional help, state speicifcally what the error was and when you received it.
    -k

  • Need to do a remote wipe of my iphone - stolen 24 hrs ago and . Need urgent help on this. Thanks - Pinaki

    Need to do a remote wipe of my iphone - stolen 24 hrs ago  Need urgent help on this. Thanks - Pinaki
    < Personal Information Edited By Host >

    Follow the steps in this article:
    iCloud: Erase your device
    Sign in to icloud.com/#find with your Apple ID (the one you use with iCloud), then click Find My iPhone.If you’re using another iCloud app, click the app’s name at the top of the iCloud.com window, then click Find My iPhone.If you don’t see Find My iPhone on iCloud.com, your account just has access to iCloud web-only features. To gain access to other iCloud features, set up iCloud on your iOS device or Mac.
    Click All Devices, then select the device you want to erase.If you have Family Sharing set up, your family members’ devices appear below their names.
    In the device’s Info window, click Erase [device].
    To erase:
    An iOS device: Enter your Apple ID password. If the device you’re erasing has iOS 7 or later, enter a phone number and message. The number and message will be displayed on the screen after the device is erased.

  • Dynamic PL/SQL - Urgent help required

    Hi there
    I am trying to write a packaged function which takes the table name and column name as arguments and build a pl/sql table which the function returns.
    Please do find the code below:
    Create or Replace Package Pk_valid_values
    is
    TYPE list_rec is record ( lc_list_desc varchar2(50));
    TYPE list_tab is TABLE of list_rec
    index by binary_integer;
    FUNCTION Fn_fetch_values
    ( p_table_name varchar2,
    p_column_name varchar2 )
    return list_tab;
    End Pk_valid_values;
    Create or Replace Package Body Pk_valid_values
    as
    FUNCTION Fn_fetch_values
    ( p_table_name varchar2,
    p_column_name varchar2 )
    return list_tab
    is
    l_values Pk_valid_values.list_tab;
    i binary_integer := 0;
    lc_element varchar2(50);
    ln_dummy number;
    v_cursor integer;
    lc_string varchar2(2000);
    ln_count number;
    BEGIN
    ln_count := Pk_count_record.Count_record(p_table_name);
    v_cursor := dbms_sql.open_cursor;
    lc_string := 'begin select p_column_name into :felement from '||
    p_table_name||' ; end;';
    dbms_sql.parse( v_cursor,
    lc_string,
    dbms_sql.native );
    dbms_sql.bind_variable( v_cursor,
    ':felement',
    lc_element );
    ln_dummy := dbms_sql.execute( v_cursor );
    for i in 1..ln_count loop
    dbms_sql.variable_value( v_cursor,
    ':felement',
    lc_element );
    l_values(i) := lc_element;
    end loop;
    dbms_sql.close_cursor( v_cursor );
    return( l_values );
    END Fn_fetch_values;
    End Pk_valid_values;
    I get an error "PLS-00382: expression is of wrong type" when I try to create this package.
    Could anyone please let me know where I have gone wrong?
    I have really burst my heads against this.
    Thanks in advance
    Rajeev

    Hi,
    I think it is that you declare a PL/SQL block, not a cursor.
    Try to replace :
    lc_string := 'begin select p_column_name into :felement from '||
    p_table_name||' ; end;';
    with :
    lc_string := 'select ' || p_column_name || ' from ' || p_table_name;
    Or an easier way :
    declare
    TYPE RefCurTyp IS REF CURSOR;
    cr RefCurTyp;
    lc_element varchar2(50);
    begin
    OPEN cr FOR 'select ' || p_column_name || ' from ' || p_table_name;
    LOOP
    FETCH cr INTO lc_element;
    EXIT WHEN cr%NOTFOUND;
    END LOOP;
    CLOSE cr;
    end;
    /Uffe

  • JDBC between Lasso  Pro and Oracle DB

    I am running Lasso Pro on a Linux server box [RH 9.0,Apache] and have created a connection to an Oracle database using the Oracle JBDC [to have read only access but with full permissions. I can connect to the DB via the Lasso Admin but only see 3 tables out of a possible 2000. I can log into the Oracle DB directly using  ODBC and then have access to all tables.Lasso uses JDBC. DO I need to do a tweak to the JDBC within the Lasso Directory so that I can reach all the data bases? Or...? I have had several folks helping me on this but no one with JDBC experience and the Lasso people do have any ideas either.But Lasso includes integrated JDBC data soource support to allow connections to JBDC-compatible data sources..."Microsoft SQL Server 2000, Frontbase, Sybase, Openbase, PostgreSQL, Oracle and hundreds more! "
    TKU,
    Jill                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Todd:
    Ref:
    http://docs.oracle.com/cd/E35855_01/tuxedo/docs12c/ads/adecid.html#wp1075436
    Section: Generating ECID by Native/WS/Jolt clients and Domain Gateway
    We are using Jolt Clients, via JSL for executing Tuxedo Services. The problem, we always face while debugging is cross relation. It would be extremely useful for us if we could get the ECID printed in webserver and tuxedo server process. Can we get ECID using any programming API in jolt client and in Tuxedo server process ? It would help us to correlate web, Tux and server logs
    Thanks,
    Biju

  • Jdev And Oracle 8i Lite (Help me)

    When I create a new project with the wizard I have a problem with the connection to my scheme (Oralce 8i late)(Polite is the database of the oracle 8i late). I can connect suceful but, I can't see the tables, the program say me that
    SQL Error
    POL-5130 message file is not loaded
    java.sql.SQLException
    Thanx

    JD3112 installation readme file contains the following hint. This might be useful to you...
    >>
    Please see the section "Using Oracle8i Lite with JDeveloper" in the online HELP for information on configuring Oracle8i Lite for use with JDeveloper.
    >>
    Regards.
    Anil
    null

  • Wireless connectivity issues with Macbook Pro and At&t service HELP!!!!!

    I have three Computers two PC's and one Macbook Pro( the latest model).My desktop PC is used by ethernet, my girls laptop is used wirelessly and finally my MBP was being used wirelessly.
    I started off with only the two PCs and my internet connection never had a problem and I was doing everything from: on the internet to downloading.
    Before I bought my MBP I had also switched from internet and phone bundle to just internet from At&t service. So when I got my first MBP I notice that I was loosing wireless connection with both my girls pc laptop and my MBP so i thought it was because I had just switched service, though they send out a service technician and we came to a conclusion that it was the MBP. (I was loosing signal via wireless and ethernet). So we tried to see if both my girls laptop(wireless) and my PC desktop (ethernet) would run into the same issue which it did not.(MBP was turned off)
    So I decided to go my nearest Apple store and let them know what was going on. So I told them what was going on and they said It must be the airport card, and they ended up changing it. When I get home I discover that not only I am having the same issue but other issues too. I went back they ran some diagnostic and they said it was defective and they gave me a new one few days later.
    So in the mean time that I waited for my new one to arrive I used my PC desktop and my girl kept using her laptop and guess what no issue what so ever for one whole week. Now I receive my new MBP(they bumped the specs a little), went home set it up and still the same issue though I dont have the issue when Im using via ethernet. Just a view minutes ago I tried removing the ethernet and using the airport/wireless and within a few minutes I lost the signal.
    I have the gateway 2WIRE model(2701HG-B) modem/router.
    Is there something wrong? what do I have to do to make this work?

    Hi Guys, I bough my Mac almost two years ago. All this time I have experienced the same issue. There are tons of discussions re this issue in the internet. Unfortunately, Apple has done nothing to fix it. I have tried a lot of different options, but they work no longer then 1-2 days. The official fix - does not exist so far. It is quit strange, isn't? I can share my experience: if you go to AirPort Utility - Manual Setup - Wireless and then change Channel, it could help you till the moment you restart your computer; next time you need to repeat it again. It takes 2 minutes. Not sure that it would work for you but you could give it a try. Well, not the best option. Anyway Apple must fix it asap! Hello Apple, do you hear us? Good luck.

  • Damaged and Lost Data - URGENT HELP

    Can anyone help me. I need to recover some data from a usb stick that has become corrupted. It seemed as though the stick had hung so after a bit i took it out and now it sees nothing when plugged in apart from a weird file. Although if I perform a verify on it with disk utility it says there are 301 files on it, but a repair achieves nothing. I have even tried techtools pro but i can't even switch to the stick. this may be because it is fat32.
    does anyone have any ideas as quite desperate. There are 30 people waiting on the data that I have here.

    Hi JayLex;
    TTBOMK There are no free recovery programs.
    You can download a demo copy which will tell you what is going to recovered when you pay for it. So I suggest you try the demo and see if it will recover enough to be worth paying the full charge for it.
    Allan

  • Premiere Pro and Magic Bullet Frames Help

    I shot a wedding a few weeks ago using the Canon XHA1 and down converted in the camera into Adobe Premiere Pro CS3.   I placed all of the edited clips on a 29.97 time line.  Here is the question… There are some portions of the video that I want to apply Magic Bullet Frames to give it more of a cinematic look.  From what I have read, it is best to place footage on a 23.976 timeline and then apply magic bullet frames (according to the magic bullet tutorial).  How can I do this since I have placed all clips on a 29.97 time line.  Should export the footage out to After Effects, apply the Frames effect on a 23.976 timeline and then re-import back into Premiere Pro (29.97)?  Or is there a better way?  Any help would be appreciated.
    Thanks.

    From what I have read, it is best to place footage on a 23.976 timeline and then apply magic bullet frames (according to the magic bullet tutorial).
    Two things.  First, I'd like to see that tutorial.  To the best of my knowledge, Frames does not create actual 24p files, it adds back the proper pulldown so you still need to work in a standard 29.97 preset.
    Second, dv2Film was created because products like Frames just weren't good enough.  Give it a try at the link below.  It's free, and creates the best looking film conversions yet.
    http://www.dv2film.com/

  • Macbook Pro and iCloud storage questions/help

    Hi all, Im needing help here as my Macbook Pro has become extremely slow and sluggish, is this because there is too much stored on it? Having iCloud should help take extra room up on the Macbook should it not?
    Just general help and advice regarding these matters would be appreciated.

    iCloud is a syncing facility, not a separate storage one, and any data on iCloud is duplicated on your Mac. You would do better to buy an external hard disk and use it to store bulky data such as media files.

  • Problem in FPM comp(pcui_gp~xssutils and pcui_gp~xssfpm) (urgently help)

    Hi,
    I am working on Floor Plan Managerin which i am using pcui_gpxssutils and pcui_gpxssfpm. Through Syn Archives , I have copied in my Local development .Then I created project in the local development. But when I expand these two FPM components , I am not getting any components, views etc. in it. I need to use FcEmployeeServices of pcui_gp~xssutils through used webdynpro components.
    Please help me why any components are not visible in FPM component.
    Regards
    Manish Jaiswal

    I think you are creating a DC with FPM, so you need to add pcui_gpxssutils and pcui_gpxssfpm DC's as used DC"s in you application, and create the webdynpro component and add the used dc's from fpm and utilis or else you may be added wrongly in the used dc's ,check that you have to select all options like runtime, build time and deploy time except design time.
    Cheers,
    Apparao

  • PLEASE HELP!!!!!!!!!!! ADOBE SHOCKWAVE SLOW, Lagging, and I NEED URGENT HELP!!

    Hello everybody, and how are you all doing on this wonderful Friday?
    Today after doing research on the support website for Adobe ShockWave flash player, I'm here as a last resourt.
    Allow me to explain the issue!
    WARNING:
    THIS IS GOING TO BE EXTREMELY LONG, BUT I NEED HELP VERY VERY BADLY!!
    I've waisted people's time because of this issue.
    I'm using an HP Windows 7 Laptop with latest version of Windows 7!
    I have Adobe ShockWave 11.7 the LATEST VERSION and It is a great program.
    However in one of my simulators which is a V500  Evita Ventilator simulator from the company Drager, the performance is HORRID, and when I say horrid, I mean HORRID TIMES 30 and then some.
    Keep in mind that this has been tested by the company on other computers, and it works just fine, however on mine the waveforms and data is choppy, slow and what it will do is it will be working smoothly one second, the next second It lags and then catches up, then lags again, and It basically drags along miserably. I used this program online and then when I contacted Drager the owners of the simulator, they thought I get a DVD of the simulator. THEY GAVE IT TO ME FREE OF CHARGE. I got it, and It was still slow and Jerky. I had used Google Chrome to use the simulator online HOWEVER, when I used the DVD, It was still slow. I have a LOAD of computer space, and have tried uninstalling Adobe Shockwave, Reinstalling it, then doing that several times. NOTHING. NOW WHAT??
    I'm desperate right now. When I say DESPERATE, THIS HAS GOT TO BE FIXED AS SOON AS POSSIBLY POSSIBLE.
    ASAPP!!!!!!!!!!!!!!!
    Is there some setting I can adjust?
    Or SOMETHING???
    The thing is other things that require Adobe Shockwave work just fine. I use a lot of simulators.
    Its just this simulator.
    PLEASE RESPOND!!
    THANK YOU, and God bless.                                                 

    RotoProne wrote:
    I have Adobe ShockWave 11.7 the LATEST VERSION and It is a great program.
    Shockwave Flash = Flash Player (11.7)
    This is the Shockwave Player (v12) forum.
    Please post your messages in the proper forum: http://forums.adobe.com/community/flashplayer
    cheers

  • My memory has fast filled up with "other"since using Lightroom 5 , both on my MAC book pro and iMac , can someone help ?

    @

    My guess is that your operating system got updated to Mavericks and that you are running an old version of Lightroom:
    Sliders are white, look different | Mac OS X 10.9 Mavericks
    Be aware of a Lightroom bug with color management in mavericks that makes shadows too deep in the Develop module: Jao's photo blog: Serious color management bug in Mac OS 10.9 "Mavericks" and Jao's photo blog: Further quantification of the Mavericks color management problem.

Maybe you are looking for

  • File Error:  Unknown file.  - Importing problem

    I recently had some problems getting my FCP 5.0.4 to launch. To make a long story short someone in this forum said that my version of FCP was out of date with my current Macbook Pro running 10.5.5. I found this a little odd because I've had this comp

  • Ho to Create Differential Excise Invoice

    Dear Friends, Please tell me how to create differential excise invoice. Process:  At the time of STO the material price is Rs 100, but when we are selling the material from our depot there is a price hike so it became 120.  So for the difference of R

  • Using Skype in China.

    My father is going to be making a trip to China soon and we're trying to figure out if Skype would be a way for him to call back home. If anyone has any insight into the situation I would appreaciate any tips or advice on what he would need to purcha

  • Is adobe Cs4 design premium compatible with macbook pro 2011?

    I just bought a macbook pro 2011, 2.2 ghz quad core i7 to work with my adobe design premium 4. I heard many software have problems with mac os lion. I got so worry and want to return the macbook. Does anyone know if i can run adobe cs4 on this new ma

  • SIM user is not able to login with hand held device

    SIM user of particular store is not able to login with handhel device but able to login with terminal. Please tell me whether it is configuration issue or data issue.