Problem with pl/sql procedure, trying to get the value of the user during execution

Hello

Using oracle 11.2.0.3

Can run sql that gets the value of the user during the fine workmanship and also via an anonymous block.

uses of SQL & Enter_Product_Number

anonymous block using: Enter_Product_number.

However, get problems when trying to create a pl/sql procedure, use one of the above

relevant below tried code part & and: buit works do not error, try bad bind variable if used: and ora-600 if try use &.

How can we have a procedure from pl/sql that can call and receives a value of user during execution?

Only way around what I can think of is to pass parameters to the procedure

Thank you

create or replace procedure ins_into_issues is

v_nd_rec_cnt number (10);

v_normal_rec_cnt number (10);

Start

Select count (*)

in v_nd_rec_cnt

refmast.issues I have

where i.iss_product_num = & old_nd_product_number;

Select count (*)

in v_normal_rec_cnt

refmast.issues I have

where i.iss_product_num = & normal_product_number;

-code below commented above works.

end;

Hello

what something like this:

create or replace procedure INS_INTO_ISSUES ( in_normal number, in_old number )  is
  v_nd_rec_cnt     number(10);
  v_normal_rec_cnt number(10);
begin
    select count(*)
      into v_nd_rec_cnt
     from refmast.issues i
     where i.iss_product_num = in_old;
  --
    select count(*)
      into v_normal_rec_cnt
      from refmast.issues i
     where i.iss_product_num = in_normal;
end;

concerning

Kay

Tags: Database

Similar Questions

  • Problem with PL/Sql to insert Images in the table

    Hi, im using SQL Developer Version 3.2.20.09,

    I want to create a table with a column of type BLOB for the insertion of image files. So I created the table, the directory, and the procedure I described below. And in the C:\ drive I created a new folder named image_dir that contains a file named test_image with extension .jpeg.

    Here are the steps I took:

    create the directory image_dir as 'c:\image_dir ';

    CREATE TABLE test_image

    (IDENTIFICATION NUMBER,

    Image_filename VARCHAR2 (50).

    image BLOB

    );

    CREATE OR REPLACE PROCEDURE insert_image_file (p_id NUMBER, p_image_name IN VARCHAR2)

    IS

    src_file BFILE.

    dst_file BLOB;

    lgh_file directory.

    BEGIN

    src_file: = BFILENAME ("image_dir", p_image_name);

    INSERT INTO test_image

    (ID, image_filename, image

    )

    VALUES (p_id, p_image_name, EMPTY_BLOB)

    )

    RETURN to image

    IN dst_file;

    CHOOSE the image

    IN dst_file

    OF test_image

    WHERE ID = p_id AND image_filename = p_image_name

    UPDATE;

    DBMS_LOB. FileOpen (src_file, DBMS_LOB.file_readonly);

    lgh_file: = DBMS_LOB.getlength (src_file);

    DBMS_LOB. LoadFromFile (dst_file, src_file, lgh_file);

    UPDATE test_image

    SET image = dst_file

    WHERE ID = p_id AND image_filename = p_image_name;

    DBMS_LOB. FileClose (src_file);

    END insert_image_file;

    But I still have this error when I run the command EXECUTE insert_image_file (1, "test_image.jpg"); Please what could be the reason for this and a better solution?

    Error from the 1 in the command line:

    RUN insert_image_file (1, "test_image.jpg")

    Error report:

    ORA-22285: non-existent directory or file for FILEOPEN operation

    ORA-06512: at "SYS." DBMS_LOB", line 744

    ORA-06512: at "ANSUWEB. INSERT_IMAGE_FILE', line 20

    ORA-06512: at line 1

    1. 00000 - 'non-existent directory or file %s operation '.

    * Cause: Attempted access to a directory that does not exist, or attempted

    to access a file in a directory that does not exist.

    * Action: To ensure that an appropriate system specified

    the directory exists in the data dictionary, or

    Make sure that the name is correct.

    A guess: c:\image_dir is not on the server where Oracle is looking for it

    Concerning

    Etbin

  • How to get the content during execution classpath

    In production mode, I can't stop the weblogic server. In the command line window, shows that recent information. How to get the content of the classpath of weblogic domain?

    You can view the log file of the server under the location */servers//log / *. The log file contains the details about the CLASSPATH setting.

    A typical classpath is represented by the java.class.path attribute in the log file.

    See you soon,.
    Julien
    http://WebLogic-wonders.com

  • My friend has a problem with its keyboard, she can not get the sign on its esprimo Fujitsue @ laptop can't get the @ so she is unable to do any e mails etc it runs windows 7

    I hope that you can help us!

    What do you get when you press this key?

    This looks like a possible keyboard mapping/region setting. See http://www.digitalcitizen.life/how-change-keyboard-input-language for the basic idea and make sure that its correctly.

    Or if you press 2 it appears that?

  • CLAS cast trying to get the user interface Application

    Greetings

    I've been running my code fine on version 5 simulators. I just bought a bold 9900 and my program did not reach this issue. So I got the sumilator (running 7.0) and I make a ClassExceptionCast on the next call

    UiApplication.getUiApplication () .invokeLater (new Runnable() {}
    public void run() {}

    It is actually on the call to

    UiApplication.getUiApplication ().

    I thought that maybe thay it was null and I was trying to compensate for it so I went

    UiApplication request = UiApplication.getUiApplication ();

    And still got the class cast exception here.

    Any ideas as to what I might hurt?

    It throws exception just make this object obj = UiApplication.getUiApplication (); I did as you suggested and just do a static global to the application when the application starts, however, that even returned a null value. So what I had to do was pass the instance of the application to my application main screen (the one that receives the reminder of the listener, finally) and call from there. It could not be static - it had to be a member of the class.

  • My pdf reezes when I click on COMMENT. I'm trying to get the tools to edit a pdf file. If I use the tools on the toolbar, there is no problem, but as soon as I click on the COMMENT, the document hangs and I have to open the Task Manager to plant it. It st

    Sorry, I'm new to the type of problem-solving process, and I don't know how to change my first speech. My true statement is less to:

    My pdf freezes when I click on COMMENT. I'm trying to get the tools to edit a pdf file. If I use the tools on the toolbar, there is no problem, but as soon as I click on the COMMENT, the document hangs and I have to open the Task Manager to plant it. It started in the last seven days (3.31.15).

    I responded to your questions below, BUT while I was looking for properties, I found repair service REPAIR the INSTALLATION of ACROBAT, and (this is) the issue has been resolved!

    Thanks for making me look for information.

    Karen

    I use Acrobat Pro XI, version 11.0.10.32.

    I created the file, that I worked in during the freeze, so I tried a PDF I created with Adobe and it also freezes when I click on COMMENT. I discover that the OBSERVATIONS of the plug-in is loaded. (See image

    I used the REVIEW for years without this problem occurring. He started in the last 2 weeks.

    I could not find real estate under the file menu, but found a security setting in the preferences in the Edit menu. It doesn't have a way to allow/disallow COMMENT.

  • Problem with Top SQLs report

    Hello

    I have a big problem with Top SQLs reports, when I generate a report of high SQLs, SQL, the value text is not end, I know that there is a "The SQL text size" setting on the properties of the agent (this configuration is also on the collections setting ' Ta maximum size in characters of the short collects text of the SQL statement is ") on the two options , I've incremented the value of 256 (default) 1500, but when I generate the Top SQLs postpones continue it problem, once the changes I restarted the agent but the problem persists, I generate the report on the different formats, but result is the same, could you help me please.

    Thank you.

    Best regards.

    I see this in support KB article https://support.software.dell.com/kb/109536

    "

    • Title

      SQL in DB2 Top instructions are truncated in the delivered report of Top SQL

    • Description

      SQL in DB2 Top instructions are truncated in the delivered report of Top SQL

    • Resolution

    • Resolution A DDB-3673 request improvement with Support software Dell to show the full text of SQL high in the report Top SQL for DB2.

      Workaround At this point you should be able to make a custom report by cloning the Top SQL existing and then customizing report. »

    I know that this is not the solution, more of an explanation and guidance on how to solve this problem by using customizations.

    Golan

  • Reference Dell EQL PS4100xv problem with MS SQL replication

    Hello

    I have a Dell PowerEdge server R420 connected to an EQL. Is installed ESXi 5.1 U1 (free version). It is only a data store.

    VM is running Windows 2008 R2 STD with MS SQL 2008 R2 STD. The change in size of database per day is around 2 to 3 MB of base on my daily full backups via the MS SQL backup.

    However, when I throw a replication session between my EQL PROD and DR EQL which size of delta is ranging from 1 GB to 50 GB every time that I run a replication? Interval is about 5 to 10 minutes. I tried 20 minutes also the size to replicate is erratic.

    Why is so huge its more than 1000 MB per replication.

    Hope someone can help me with that.

    Thank you

    Paul

    Re: Storage Direct.  Yes, if you configure these volumes SQL replication, only the changed data will be included.  Only VM will see to all the files in the data store.   However, you still want to replicate your VMFS, but not as often as SQL datastore.

    Re: optimize.  Article I included has the registry setting you need.  This works for all storage formatted to NTFS.

    In addition, when you format the SQL data / log volumes, has the NTFS 64 K cluster size.   The default value is usually 4 or 8 K.  This will align all the writings and readings on the 64K of distribution of the EQL table size.   This improves performance of I/o.

  • problem with sending mail after sending by GET

    Hello. i've got such a problem-i can send a screenshot to the server by HTTP using the POST method like this:

              Bitmap _bitmap = new Bitmap(Display.getWidth(), Display.getHeight());
                Display.screenshot(_bitmap);
    
                JPEGEncodedImage _jpg = JPEGEncodedImage.encode(_bitmap, 20);
                DataBuffer _db = new DataBuffer();
                _db.write(_jpg.getData());
    
                _http = (HttpConnection)
                            Connector.open(_url, Connector.READ_WRITE);
    
                _http.setRequestMethod("POST");
    
                _http.openOutputStream().write(_db.toArray());
    

    and it works well. but now i need, initially, send some parameters (such as the IMEI) using GET and then this screenshot using POST (the same as in this code I do this more or less like this:)

    URLEncodedPostData _u = new URLEncodedPOstData(null, false);_u.append("imei", "123456789");   
    
        _http = (HttpConnection)
                Connector.open(_url+_u, Connector.READ_WRITE);
         DataInputStream _dis = _http.openDataInputStream(); 
    
         Bitmap _bitmap = new Bitmap(Display.getWidth(), Display.getHeight());
                Display.screenshot(_bitmap);
    
                JPEGEncodedImage _jpg = JPEGEncodedImage.encode(_bitmap, 20);
                DataBuffer _db = new DataBuffer();
                _db.write(_jpg.getData());
    
                        _http.setRequestMethod("POST");
    
                _http.openOutputStream().write(_db.toArray());
    

    but this gives me an IOException! but still even with IOException I log and server gets the imei that was sent using GET. I noticed that the problem is caused by this line:

    _HTTP.setRequestMethod ("post");

    I put it right after the connection:

    _httpConnection = (HttpConnection)Connector(_url+_u, Connector.READ_WRITE);_httpConnection.setRequestMethod("POST");
    

    now, I only get an IOException, and always the server will not get my picture. only the imei...

    Why is this? Why can I not use post after get? or what I am doing wrong?

    thx for any suggestion...

    Kind regards!

    Hi, problem solved. I have new httpConnection each time so that I could not do that. now it's ok.

    Kind regards

  • I bought a book of game Google and downloaded the CMHA on my desk. When I try and open it with my Adobe Digital Edition, I get the error message "license make mistake. "License server communication problem: E_Stream_Error.

    I bought a book of game Google and downloaded the CMHA on my desk. When I try and open it with my Adobe Digital Edition, I get the error message "license make mistake. "License server communication problem: E_Stream_Error.

    Response to SMcLeod8:

    Hello, I managed to solve my problem of E_STREAM_ERROR regarding the Google Play ebook. The short answer is to use ADE 4.0.3.

    When I met the problem of the E_STREAM_ERROR, it is with ADE 2.0.67532 on Windows 7 (and this had no problem handling the Kobo CMHA, OverDrive files, open a library and a sample epub BCAM from Adobe itself). This is why I would not upgrade my 2.0.67532 to the last 4.0.3. Instead, I used another Windows 7 PC and installed ADE 4.0.3. On my first try, I allowed the 4.0.3 without ID, and there was an error E-GOOGLE_DEVICE_LIMIT_REACHED. I then allowed with the Adobe-same ID * as my 2.0.67532 PC. It worked as I could get my epub from Google.

    As I don't expect a response from Adobe technical support, I guess that now Google license servers do not work with Adobe 2.0.3. I hope this will help you solve your problem - at least to get your ebook in ADE first.

    However, I would be careful replacing 4.0.3 of my 2.0.67532 I wouldn't be surprised if the latest version will not work with other suppliers of epub for social mobilization. For me the upgrade to the latest version of the software is never the best solution - it could solve a problem, but creates another.

    Note: * I understand that you can authorize up to a total of six computers with the same Adobe ID. Not sure that this policy is still standing.

  • Error with PL/SQL procedure to import data into the database

    When you run the procedure below, I get the message:

    Compilation failure, line 448
    PLS-00103: encountered the symbol "LOOP" when expecting one of the following values: case of the symbol "case" was substituted for the "LOOP" continue. Compilation failure, line 450
    PLS-00103: encountered the symbol ";" when expecting one of the following values: case

    Can someone help me understand what im missing? Thank you

    Deanna

    CREATE OR REPLACE PROCEDURE PURSUITS.IMPORT_LEGACY_PURSUIT IS
    
    CURSOR DATA_CURSOR IS
         SELECT * 
         FROM PURSUITS.IMPORT_LEGACY_PURSUIT;
    
    CR DATA_CURSOR%ROWTYPE;
    
    
    V_PURSUIT_DATE                DATE;
    V_ROADWAY_TYPE                VARCHAR2(5);
    V_TRAFFIC_FLOW                VARCHAR2(8);
    V_REASON_FOR_INITIATION       VARCHAR2(6);
    V_VEHICLE_MARKING             VARCHAR2(8);
    V_VEHICLE_LIGHTS_ON           VARCHAR2(1);
    V_VEHICLE_SIREN_ON            VARCHAR2(1);
    V_AIRCRAFT_AVAILABLE             VARCHAR2(1);
    V_AIRCRAFT_INVOLVED              VARCHAR2(1);
    V_OTHER_AGENCY_INVOLVED          VARCHAR2(1);
    V_OTHER_AGENCY_STATUS            VARCHAR2(8);
    V_OTHER_AGENCY_COUNT            NUMBER(2,0);
    V_SUSPECT_VEHICLE_TYPE          VARCHAR2(2);
    V_SUSPECT_RACE                  VARCHAR2(1);
    V_SUSPECT_ETHNICITY             VARCHAR2(1);
    V_SUSPECT_ID_KNOWN              VARCHAR2(1);
    V_SUSPECT_POSSESS_WEAPON        VARCHAR2(1);
    V_REASON_FOR_TERMINATION        VARCHAR2(6);
    V_REASON_FOR_FLIGHT             VARCHAR2(6);
    V_ACCIDENT                      VARCHAR2(1);
    V_ACCIDENT_TYPE                 VARCHAR2(8);
    V_ACCIDENT_PARTIES_INVOLVED     VARCHAR2(8);
    
    V_CASE_COUNT                    NUMBER;
    
    BEGIN
      OPEN DATA_CURSOR;
    
      LOOP
           FETCH DATA_CURSOR INTO CR;
    
           EXIT WHEN DATA_CURSOR%NOTFOUND;
    
    --PURSUIT DATE
    
    --       IF CR.PURSUIT_DATE = 0 THEN
    --       V_PURSUIT_DATE :=NULL;
    --       ELSE
    --            V_PURSUIT_DATE :=TO_DATE(CR.PURSUIT_DATE,CONCAT('MONTH'/'DAY'/'YEAR');
    --       END IF;
    
    --ROADWAY TYPE
           CASE
           WHEN CR.ROADWAY = 1 THEN
           V_ROADWAY_TYPE := 'URBAN';
           WHEN CR.ROADWAY = 2 THEN
           V_ROADWAY_TYPE := 'RURAL';
           ELSE
           V_ROADWAY_TYPE := NULL;
           END CASE;
    
    --TRAFFIC FLOW
           CASE
           WHEN CR.TRAFFICFLO = 1 THEN
           V_TRAFFIC_FLOW := 'LIGHT';
           WHEN CR.TRAFFICFLO = 2 THEN
           V_TRAFFIC_FLOW := 'MODERATE';
           WHEN CR.TRAFFICFLO = 3 THEN
           V_TRAFFIC_FLOW := 'HIGH';
           ELSE
           V_TRAFFIC_FLOW := NULL;
           END_CASE;
    
    --INITIATION CODES
           CASE
           WHEN CR.INITREASON = 1 THEN
           V_REASON_FOR_INITIATION := 'SUSACT';
           WHEN CR.INITREASON = 2 THEN
           V_REASON_FOR_INITIATION := 'TRAFVI';
           WHEN CR.INITREASON = 3 THEN
           V_REASON_FOR_INITIATION := 'MISCCR';
           WHEN CR.INITREASON = 4 THEN
           V_REASON_FOR_INITIATION := 'FELONY';
           WHEN CR.INITREASON = 5 THEN
           V_REASON_FOR_INITIATION := 'DUIARR';
           WHEN CR.INITREASON = 6 THEN
           V_REASON_FOR_INITIATION := 'NCICHT';
           WHEN CR.INITREASON = 7 THEN
           V_REASON_FOR_INITIATION := 'OTHERR';
           ELSE
           V_REASON_FOR_INITIATION := NULL;
           END_CASE;
    
    --VEHICLE MARKING
           CASE
           WHEN CR.CARMARKS = 1 THEN
           V_VEHICLE_MARKING := 'MRKLIGHT';
           WHEN CR.CARMARKS = 2 THEN
           V_VEHICLE_MARKING := 'MRKCLEAN';
           WHEN CR.CARMARKS = 3 THEN
           V_VEHICLE_MARKING := 'UNMARKED';
           ELSE
           V_VEHICLE_MARKING := NULL;
           END CASE;
    
    --LIGHTS
           CASE
           WHEN CR.LIGHTS_ON = 1 THEN
           V_VEHICLE_LIGHTS_ON := 'Y';
           WHEN CR.LIGHTS_ON = 2 THEN
           V_VEHICLE_LIGHTS_ON := 'N';
           ELSE
           V_VEHICLE_LIGHTS_ON := NULL;
           END CASE;
    
    
    --SIREN
           CASE
           WHEN CR.SIREN_ON = 1 THEN
           V_VEHICLE_SIREN_ON := 'Y';
           WHEN CR.SIREN_ON = 2 THEN
           V_VEHICLE_SIREN_ON := 'N';
           ELSE
           V_VEHICLE_SIREN_ON := NULL;
           END CASE;
    
    --AIRCRAFT AVAILABLE
           CASE
           WHEN CR.AIRCRAFTAV = 1 THEN
           V_AIRCRAFT_AVAILABLE := 'Y';
           WHEN CR.AIRCRAFTAV = 2 THEN
           V_AIRCRAFT_AVAILABLE := 'N';
           WHEN CR.AIRCRAFTAV = 3 THEN
           V_AIRCRAFT_AVAILABLE := 'U';
           ELSE
           V_AIRCRAFT_AVAILABLE := NULL;
           END CASE;
    
    --AIRCRAFT INVOLVED
           CASE
           WHEN CR.AIRCRAFTIN = 1 THEN
           V_AIRCRAFT_INVOLVED := 'Y';
           WHEN CR.AIRCRAFTIN = 2 THEN
           V_AIRCRAFT_INVOLVED := 'N';
           ELSE
           V_AIRCRAFT_INVOLVED := NULL;
           END CASE;
    
    --AGENCY INVOLVED
           CASE
           WHEN CR.OTHRAGENCY = 1 THEN
           V_OTHER_AGENCY_INVOLVED := 'Y';
           WHEN CR.OTHRAGENCY = 2 THEN
           V_OTHER_AGENCY_INVOLVED := 'N';
           ELSE
           V_OTHER_AGENCY_INVOLVED := NULL;
           END CASE;
    
    --AGENCY STATUS
           CASE    
           WHEN CR.STATUS = 1 THEN
           V_OTHER_AGENCY_STATUS := 'INITIATE';
           WHEN CR.STATUS = 2 THEN
           V_OTHER_AGENCY_STATUS := 'ASSISTED';
           ELSE
           V_OTHER_AGENCY_STATUS := NULL;
           END CASE;
    
    --SUSPECT VEHICLE TYPE
           CASE
           WHEN CR.VEHICLETYP = 1 THEN
           V_SUSPECT_VEHICLE_TYPE := 'SD';
           WHEN CR.VEHICLETYP = 2 THEN
           V_SUSPECT_VEHICLE_TYPE := 'MC';
           WHEN CR.VEHICLETYP = 3 THEN
           V_SUSPECT_VEHICLE_TYPE := 'VN';
           WHEN CR.VEHICLETYP = 4 THEN
           V_SUSPECT_VEHICLE_TYPE := 'PK';
           WHEN CR.VEHICLETYP = 5 THEN
           V_SUSPECT_VEHICLE_TYPE := 'DS';
           WHEN CR.VEHICLETYP = 6 THEN
           V_SUSPECT_VEHICLE_TYPE := 'OT';
           ELSE
           V_SUSPECT_VEHICLE_TYPE := NULL;
           END CASE;
    
    --SUSPECT RACE AND ETHNICITY
           IF CR.RACE = 'H' THEN
           V_SUSPECT_RACE := 'W';
           ELSE
           V_SUSPECT_RACE := CR.RACE;
           END IF;
    
    --SUSPECT ETHNICITY
           IF CR.RACE = 'H' THEN
           V_SUSPECT_ETHNICITY := 'H'
           ELSE
           V_SUSPECT_ETHNICITY := NULL;
           END IF;
    
    --SUSPECT ID
           CASE
           WHEN CR.ID_KNOWN = 1 THEN
           V_SUSPECT_ID_KNOWN := 'Y';
           WHEN CR.ID_KNOWN = 2 THEN
           V_SUSPECT_ID_KNOWN := 'N';
           ELSE
           V_SUSPECT_ID_KNOWN := NULL;
           END CASE;
    
    --SUSPECT WEAPON
           CASE
           WHEN CR.WEAPON = 1 THEN
           V_SUSPECT_POSSESS_WEAPON := 'Y';
           WHEN CR.WEAPON = 2 THEN
           V_SUSPECT_POSSESS_WEAPON := 'N';
           ELSE
           V_SUSPECT_POSSESS_WEAPON := NULL;
           END CASE;
    
    --TERMINATION REASON
           CASE
           WHEN CR.TERMREASON = 1 THEN
           V_REASON_FOR_TERMINATION := 'DVRVOL';
           WHEN CR.TERMREASON = 2 THEN
           V_REASON_FOR_TERMINATION := 'ALATER';
           WHEN CR.TERMREASON = 3 THEN
           V_REASON_FOR_TERMINATION := 'VEHDIS';
           WHEN CR.TERMREASON = 4 THEN
           V_REASON_FOR_TERMINATION := 'VEHWRK';
           WHEN CR.TERMREASON = 5 THEN
           V_REASON_FOR_TERMINATION := 'ROADBL';
           WHEN CR.TERMREASON = 6 THEN
           V_REASON_FOR_TERMINATION := 'STOPST';
           WHEN CR.TERMREASON = 7 THEN
           V_REASON_FOR_TERMINATION := 'RAMMED';
           WHEN CR.TERMREASON = 8 THEN
           V_REASON_FOR_TERMINATION := 'WEAPON';
           WHEN CR.TERMREASON = 9 THEN
           V_REASON_FOR_TERMINATION := 'DVRINJ';
           WHEN CR.TERMREASON = 10 THEN
           V_REASON_FOR_TERMINATION := 'OFFTER';
           WHEN CR.TERMREASON = 11 THEN
           V_REASON_FOR_TERMINATION := 'SUPTER';
           WHEN CR.TERMREASON = 12 THEN
           V_REASON_FOR_TERMINATION := 'PATDIS';
           WHEN CR.TERMREASON = 13 THEN
           V_REASON_FOR_TERMINATION := 'PATWRK';
           WHEN CR.TERMREASON = 14 THEN
           V_REASON_FOR_TERMINATION := 'LOSTEM';
           WHEN CR.TERMREASON = 15 THEN
           V_REASON_FOR_TERMINATION := 'FLEDAB';
           WHEN CR.TERMREASON = 16 THEN
           V_REASON_FOR_TERMINATION := 'FLEDWK';
           WHEN CR.TERMREASON = 17 THEN
           V_REASON_FOR_TERMINATION := 'OFFINJ';
           WHEN CR.TERMREASON = 18 THEN
           V_REASON_FOR_TERMINATION := 'OTHAGY';
           ELSE
           V_REASON_FOR_TERMINATION := NULL;
           END CASE;
    
    --FLIGHT REASON
           CASE
           WHEN CR.FLI_REASON = 1 THEN
           V_REASON_FOR_FLIGHT := 'SUMMON';
           WHEN CR.FLI_REASON = 2 THEN
           V_REASON_FOR_FLIGHT := 'DUIARR';
           WHEN CR.FLI_REASON = 3 THEN
           V_REASON_FOR_FLIGHT := 'FELONY';
           WHEN CR.FLI_REASON = 4 THEN
           V_REASON_FOR_FLIGHT := 'STOLEN';
           WHEN CR.FLI_REASON = 5 THEN
           V_REASON_FOR_FLIGHT := 'MISDEM';
           WHEN CR.FLI_REASON = 6 THEN
           V_REASON_FOR_FLIGHT := 'DRUGAR';
           WHEN CR.FLI_REASON = 7 THEN
           V_REASON_FOR_FLIGHT := 'FEARPO';
           WHEN CR.FLI_REASON = 8 THEN
           V_REASON_FOR_FLIGHT := 'NODVRL';
           WHEN CR.FLI_REASON = 9 THEN
           V_REASON_FOR_FLIGHT := 'NOINSU';
           WHEN CR.FLI_REASON = 10 THEN
           V_REASON_FOR_FLIGHT := 'PARENT';
           WHEN CR.FLI_REASON = 11 THEN
           V_REASON_FOR_FLIGHT := 'MENTAL';
           WHEN CR.FLI_REASON = 12 THEN
           V_REASON_FOR_FLIGHT := 'OTHERR';
           ELSE
           V_REASON_FOR_FLIGHT := NULL;
           END CASE;
    
    --ACCIDENT
           CASE
           WHEN CR.ACCIDENT = 1 THEN
           V_ACCIDENT := 'Y';
           WHEN CR.ACCIDENT = 2 THEN
           V_ACCIDENT := 'N';
           ELSE
           V_ACCIDENT := NULL;
           END CASE;
    
    --ACCIDENT TYPE
           CASE
           WHEN CR.ACCDNTTYPE = 1 THEN
           V_ACCIDENT_TYPE := 'PROPERTY DAMAGE';
           WHEN CR.ACCDNTTYPE = 2 THEN
           V_ACCIDENT_TYPE := 'INJURY';
           WHEN CR.ACCDNTTYPE = 3 THEN
           V_ACCIDENT_TYPE := 'FATALITY';
           ELSE
           V_ACCIDENT_TYPE := NULL;
           END CASE;
    
    --ACCIDENT PARTIES INVOLVED
           CASE
           WHEN CR.ACCPARTIES = 1 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'SUSPONLY';
           WHEN CR.ACCPARTIES = 2 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'THRDONLY';
           WHEN CR.ACCPARTIES = 3 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'POLIONLY';
           WHEN CR.ACCPARTIES = 4 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'POLISUSP';
           WHEN CR.ACCPARTIES = 5 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'POLITHRD';
           WHEN CR.ACCPARTIES = 6 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'SUSPTHRD';
           WHEN CR.ACCPARTIES = 7 THEN
           V_ACCIDENT_PARTIES_INVOLVED := 'ALLPARTY';
           ELSE
           V_ACCIDENT_PARTIES_INVOLVED := NULL;
           END CASE;
    
    SELECT COUNT(*) INTO V_CASE_COUNT
    FROM PURSUITS.IMPORT_LEGACY_PURSUIT
    WHERE CASE_NUMBER = CR.LOCCASENUM;
    
    CASE
    WHEN V_CASE_COUNT = 0 THEN
    
    DBMS_OUTPUT.PUT_LINE ('DONE');
    
    --INSERT DATA INTO TABLE
           INSERT INTO PURSUITS.IMPORT_LEGACY_PURSUIT(
    CASE_NUMBER,            
    OFFICER_LNAME,          
    OFFICER_FNAME,         
    OFFICER_MI,            
    OFFICER_NAME_HP261,    
    OFFICER_RADIO,          
    OFFICER_VEH_UNIT,      
    OFFICER_TROOP,         
    OFFICER_ZONE,          
    OFFICER_YEARS_SERVICE,  
    PURSUIT_TIME_BEGAN,  
    PURSUIT_DATE,          
    PURSUIT_DOW,            
    PURSUIT_TIME_ENDED,   
    DURATION_MILES,        
    DURATION_MINUTES,       
    SPEED_MAX,             
    ROADWAY_TYPE,         
    TRAFFIC_FLOW,          
    REASON_FOR_INITIATION,  
    REASON_FOR_INITIATION_OTHER,  
    VEHICLE_MARKING,        
    VEHICLE_LIGHTS_ON,      
    VEHICLE_SIREN_ON,       
    VEHICLE_COUNT_MARKED_TOPLIGHT,  
    VEHICLE_COUNT_UNMARKED, 
    VEHICLE_COUNT_MARKED_CLEAN,     
    AIRCRAFT_AVAILABLE,        
    AIRCRAFT_INVOLVED,         
    OTHER_AGENCY_INVOLVED,     
    OTHER_AGENCY_STATUS,       
    OTHER_AGENCY_COUNT,          
    SUSPECT_VEHICLE_TYPE,         
    SUSPECT_VEHICLE_TYPE_OTHER,   
    SUSPECT_AGE,                  
    SUSPECT_GENDER,               
    SUSPECT_RACE,               
    SUSPECT_ETHNICITY,           
    SUSPECT_ID_KNOWN,             
    SUSPECT_POSSESS_WEAPON,    
    SUSPECT_DUI,                
    SUSPECT_BAC,                  
    REASON_FOR_TERMINATION,       
    REASON_FOR_FLIGHT,            
    REASON_FOR_FLIGHT_OTHER,      
    ACCIDENT,                    
    ACCIDENT_TYPE,                
    ACCIDENT_PARTIES_INVOLVED,    
    IMMEDIATE_SUPERVISOR,         
    TROOP_COMMANDER)
    
    VALUES(
    CR.LOCASENUM,
    NULL,
    NULL,
    NULL,
    CR.N/A,
    CR.RADIO_NUM,
    CR.UNIT_NUM,
    CR.TROOP,
    CR.ZONE,
    CR.YRSSERVICE,
    CR.TIMEBEGAN,
    V_PURSUIT_DATE,
    CR.DAYOFWEEK,
    CR.TIME_ENDED,
    CR.MILES,
    CR.MINUTES,
    CR.MPH,
    V_ROADWAY_TYPE,
    V_TRAFFIC_FLOW,
    V_REASON_FOR_INITIATION,
    CR.OTHER1,
    V_VEHICLE_MARKING,
    V_VEHICLE_LIGHTS_ON,
    V_VEHICLE_SIREN_ON,
    CR.MARKED_TL,
    CR.UNMARKED,
    CR.MARKED_CR,
    V_AIRCRAFT_AVAILABLE,
    V_AIRCRAFT_INVOLVED,
    V_OTHER_AGENCY_INVOLVED,
    V_AGENCY_STATUS,
    CR.NUM_VEH,
    V_SUSPECT_VEHICLE_TYPE,
    CR.OTHER2,
    CR.AGE,
    CR.SEX,
    V_SUSPECT_RACE,
    CR.N/A,
    V_SUSPECT_ID_KNOWN,
    V_SUSPECT_POSSESS_WEAPON,
    CR.DUI,
    CR.BAC_PERCNT,
    V_REASON_FOR_TERMINATION,
    V_REASON_FOR_FLIGHT,
    CR.OTHER3,
    V_ACCIDENT,
    V_ACCIDENT_TYPE,
    V_ACCIDENT_PARTIES_INVOLVED,
    NULL,
    NULL);
    
    END LOOP;
    CLOSE DATA_CURSOR;
    END;

    Deanna,

    Question, I don't understand why you're selecting in import_legacy_pursuit and insertion in the same table?

    It would be wonderful if you can display the structure of the table and 1 or 2 fictitious example of records.

     cursor cr is
      SELECT *
          FROM import_legacy_pursuit;
      ...
      ...
    
     INSERT INTO import_legacy_pursuit
               (
                   case_number,
                   officer_lname,
                    ....
                    ..
    ) values (.....
    ...);
    

    In any case, I made some changes to the procedure, you must replace the Insert with your statement and post if it worked for you.

    DECLARE
       CURSOR data_cursor
       IS
          SELECT *
          FROM import_legacy_pursuit;
    
       cr                            data_cursor%ROWTYPE;
    
       v_pursuit_date                DATE;
       v_roadway_type                VARCHAR2 (15);
       v_traffic_flow                VARCHAR2 (18);
       v_reason_for_initiation       VARCHAR2 (16);
       v_vehicle_marking             VARCHAR2 (18);
       v_vehicle_lights_on           VARCHAR2 (11);
       v_vehicle_siren_on            VARCHAR2 (11);
       v_aircraft_available          VARCHAR2 (11);
       v_aircraft_involved           VARCHAR2 (11);
       v_other_agency_involved       VARCHAR2 (11);
       v_other_agency_status         VARCHAR2 (18);
       v_other_agency_count          NUMBER (4, 0);
       v_suspect_vehicle_type        VARCHAR2 (20);
       v_suspect_race                VARCHAR2 (11);
       v_suspect_ethnicity           VARCHAR2 (11);
       v_suspect_id_known            VARCHAR2 (11);
       v_suspect_possess_weapon      VARCHAR2 (11);
       v_reason_for_termination      VARCHAR2 (11);
       v_reason_for_flight           VARCHAR2 (11);
       v_accident                    VARCHAR2 (11);
       v_accident_type               VARCHAR2 (18);
       v_accident_parties_involved   VARCHAR2 (18);
    
       v_lo_number                   VARCHAR2 (50);
    
       v_case_count                  NUMBER;
    BEGIN
       OPEN data_cursor;
    
       LOOP
          FETCH data_cursor INTO cr;
    
          EXIT WHEN data_cursor%NOTFOUND;
    
          --PURSUIT DATE
    
          --       IF CR.PURSUIT_DATE = 0 THEN
          --       V_PURSUIT_DATE :=NULL;
          --       ELSE
          --            V_PURSUIT_DATE :=TO_DATE(CR.PURSUIT_DATE,CONCAT('MONTH'/'DAY'/'YEAR');
          --       END IF;
    
          --ROADWAY TYPE
          CASE
             WHEN cr.roadway = 1
             THEN
                v_roadway_type   := 'URBAN';
             WHEN cr.roadway = 2
             THEN
                v_roadway_type   := 'RURAL';
             ELSE
                v_roadway_type   := NULL;
          END CASE;
    
          --TRAFFIC FLOW
          CASE
             WHEN cr.trafficflo = 1
             THEN
                v_traffic_flow   := 'LIGHT';
             WHEN cr.trafficflo = 2
             THEN
                v_traffic_flow   := 'MODERATE';
             WHEN cr.trafficflo = 3
             THEN
                v_traffic_flow   := 'HIGH';
             ELSE
                v_traffic_flow   := NULL;
          END CASE;
    
          --INITIATION CODES
          CASE
             WHEN cr.initreason = 1
             THEN
                v_reason_for_initiation   := 'SUSACT';
             WHEN cr.initreason = 2
             THEN
                v_reason_for_initiation   := 'TRAFVI';
             WHEN cr.initreason = 3
             THEN
                v_reason_for_initiation   := 'MISCCR';
             WHEN cr.initreason = 4
             THEN
                v_reason_for_initiation   := 'FELONY';
             WHEN cr.initreason = 5
             THEN
                v_reason_for_initiation   := 'DUIARR';
             WHEN cr.initreason = 6
             THEN
                v_reason_for_initiation   := 'NCICHT';
             WHEN cr.initreason = 7
             THEN
                v_reason_for_initiation   := 'OTHERR';
             ELSE
                v_reason_for_initiation   := NULL;
          END CASE;
    
          --VEHICLE MARKING
          CASE
             WHEN cr.carmarks = 1
             THEN
                v_vehicle_marking   := 'MRKLIGHT';
             WHEN cr.carmarks = 2
             THEN
                v_vehicle_marking   := 'MRKCLEAN';
             WHEN cr.carmarks = 3
             THEN
                v_vehicle_marking   := 'UNMARKED';
             ELSE
                v_vehicle_marking   := NULL;
          END CASE;
    
          --LIGHTS
          CASE
             WHEN cr.lights_on = 1
             THEN
                v_vehicle_lights_on   := 'Y';
             WHEN cr.lights_on = 2
             THEN
                v_vehicle_lights_on   := 'N';
             ELSE
                v_vehicle_lights_on   := NULL;
          END CASE;
    
          --SIREN
          CASE
             WHEN cr.siren_on = 1
             THEN
                v_vehicle_siren_on   := 'Y';
             WHEN cr.siren_on = 2
             THEN
                v_vehicle_siren_on   := 'N';
             ELSE
                v_vehicle_siren_on   := NULL;
          END CASE;
    
          --AIRCRAFT AVAILABLE
          CASE
             WHEN cr.aircraftav = 1
             THEN
                v_aircraft_available   := 'Y';
             WHEN cr.aircraftav = 2
             THEN
                v_aircraft_available   := 'N';
             WHEN cr.aircraftav = 3
             THEN
                v_aircraft_available   := 'U';
             ELSE
                v_aircraft_available   := NULL;
          END CASE;
    
          --AIRCRAFT INVOLVED
          CASE
             WHEN cr.aircraftin = 1
             THEN
                v_aircraft_involved   := 'Y';
             WHEN cr.aircraftin = 2
             THEN
                v_aircraft_involved   := 'N';
             ELSE
                v_aircraft_involved   := NULL;
          END CASE;
    
          --AGENCY INVOLVED
          CASE
             WHEN cr.othragency = 1
             THEN
                v_other_agency_involved   := 'Y';
             WHEN cr.othragency = 2
             THEN
                v_other_agency_involved   := 'N';
             ELSE
                v_other_agency_involved   := NULL;
          END CASE;
    
          --AGENCY STATUS
          CASE
             WHEN cr.status = 1
             THEN
                v_other_agency_status   := 'INITIATE';
             WHEN cr.status = 2
             THEN
                v_other_agency_status   := 'ASSISTED';
             ELSE
                v_other_agency_status   := NULL;
          END CASE;
    
          --SUSPECT VEHICLE TYPE
          CASE
             WHEN cr.vehicletyp = 1
             THEN
                v_suspect_vehicle_type   := 'SD';
             WHEN cr.vehicletyp = 2
             THEN
                v_suspect_vehicle_type   := 'MC';
             WHEN cr.vehicletyp = 3
             THEN
                v_suspect_vehicle_type   := 'VN';
             WHEN cr.vehicletyp = 4
             THEN
                v_suspect_vehicle_type   := 'PK';
             WHEN cr.vehicletyp = 5
             THEN
                v_suspect_vehicle_type   := 'DS';
             WHEN cr.vehicletyp = 6
             THEN
                v_suspect_vehicle_type   := 'OT';
             ELSE
                v_suspect_vehicle_type   := NULL;
          END CASE;
    
          --SUSPECT RACE AND ETHNICITY
          IF cr.race = 'H'
          THEN
             v_suspect_race   := 'W';
          ELSE
             v_suspect_race   := cr.race;
          END IF;
    
          --SUSPECT ETHNICITY
          IF cr.race = 'H'
          THEN
             v_suspect_ethnicity   := 'H';
          ELSE
             v_suspect_ethnicity   := NULL;
          END IF;
    
          --SUSPECT ID
          CASE
             WHEN cr.id_known = 1
             THEN
                v_suspect_id_known   := 'Y';
             WHEN cr.id_known = 2
             THEN
                v_suspect_id_known   := 'N';
             ELSE
                v_suspect_id_known   := NULL;
          END CASE;
    
          --SUSPECT WEAPON
          CASE
             WHEN cr.weapon = 1
             THEN
                v_suspect_possess_weapon   := 'Y';
             WHEN cr.weapon = 2
             THEN
                v_suspect_possess_weapon   := 'N';
             ELSE
                v_suspect_possess_weapon   := NULL;
          END CASE;
    
          --TERMINATION REASON
          CASE
             WHEN cr.termreason = 1
             THEN
                v_reason_for_termination   := 'DVRVOL';
             WHEN cr.termreason = 2
             THEN
                v_reason_for_termination   := 'ALATER';
             WHEN cr.termreason = 3
             THEN
                v_reason_for_termination   := 'VEHDIS';
             WHEN cr.termreason = 4
             THEN
                v_reason_for_termination   := 'VEHWRK';
             WHEN cr.termreason = 5
             THEN
                v_reason_for_termination   := 'ROADBL';
             WHEN cr.termreason = 6
             THEN
                v_reason_for_termination   := 'STOPST';
             WHEN cr.termreason = 7
             THEN
                v_reason_for_termination   := 'RAMMED';
             WHEN cr.termreason = 8
             THEN
                v_reason_for_termination   := 'WEAPON';
             WHEN cr.termreason = 9
             THEN
                v_reason_for_termination   := 'DVRINJ';
             WHEN cr.termreason = 10
             THEN
                v_reason_for_termination   := 'OFFTER';
             WHEN cr.termreason = 11
             THEN
                v_reason_for_termination   := 'SUPTER';
             WHEN cr.termreason = 12
             THEN
                v_reason_for_termination   := 'PATDIS';
             WHEN cr.termreason = 13
             THEN
                v_reason_for_termination   := 'PATWRK';
             WHEN cr.termreason = 14
             THEN
                v_reason_for_termination   := 'LOSTEM';
             WHEN cr.termreason = 15
             THEN
                v_reason_for_termination   := 'FLEDAB';
             WHEN cr.termreason = 16
             THEN
                v_reason_for_termination   := 'FLEDWK';
             WHEN cr.termreason = 17
             THEN
                v_reason_for_termination   := 'OFFINJ';
             WHEN cr.termreason = 18
             THEN
                v_reason_for_termination   := 'OTHAGY';
             ELSE
                v_reason_for_termination   := NULL;
          END CASE;
    
          --FLIGHT REASON
          CASE
             WHEN cr.fli_reason = 1
             THEN
                v_reason_for_flight   := 'SUMMON';
             WHEN cr.fli_reason = 2
             THEN
                v_reason_for_flight   := 'DUIARR';
             WHEN cr.fli_reason = 3
             THEN
                v_reason_for_flight   := 'FELONY';
             WHEN cr.fli_reason = 4
             THEN
                v_reason_for_flight   := 'STOLEN';
             WHEN cr.fli_reason = 5
             THEN
                v_reason_for_flight   := 'MISDEM';
             WHEN cr.fli_reason = 6
             THEN
                v_reason_for_flight   := 'DRUGAR';
             WHEN cr.fli_reason = 7
             THEN
                v_reason_for_flight   := 'FEARPO';
             WHEN cr.fli_reason = 8
             THEN
                v_reason_for_flight   := 'NODVRL';
             WHEN cr.fli_reason = 9
             THEN
                v_reason_for_flight   := 'NOINSU';
             WHEN cr.fli_reason = 10
             THEN
                v_reason_for_flight   := 'PARENT';
             WHEN cr.fli_reason = 11
             THEN
                v_reason_for_flight   := 'MENTAL';
             WHEN cr.fli_reason = 12
             THEN
                v_reason_for_flight   := 'OTHERR';
             ELSE
                v_reason_for_flight   := NULL;
          END CASE;
    
          --ACCIDENT
          CASE
             WHEN cr.accident = 1
             THEN
                v_accident   := 'Y';
             WHEN cr.accident = 2
             THEN
                v_accident   := 'N';
             ELSE
                v_accident   := NULL;
          END CASE;
    
          --ACCIDENT TYPE
          CASE
             WHEN cr.accdnttype = 1
             THEN
                v_accident_type   := 'PROPERTY DAMAGE';
             WHEN cr.accdnttype = 2
             THEN
                v_accident_type   := 'INJURY';
             WHEN cr.accdnttype = 3
             THEN
                v_accident_type   := 'FATALITY';
             ELSE
                v_accident_type   := NULL;
          END CASE;
    
          --ACCIDENT PARTIES INVOLVED
          CASE
             WHEN cr.accparties = 1
             THEN
                v_accident_parties_involved   := 'SUSPONLY';
             WHEN cr.accparties = 2
             THEN
                v_accident_parties_involved   := 'THRDONLY';
             WHEN cr.accparties = 3
             THEN
                v_accident_parties_involved   := 'POLIONLY';
             WHEN cr.accparties = 4
             THEN
                v_accident_parties_involved   := 'POLISUSP';
             WHEN cr.accparties = 5
             THEN
                v_accident_parties_involved   := 'POLITHRD';
             WHEN cr.accparties = 6
             THEN
                v_accident_parties_involved   := 'SUSPTHRD';
             WHEN cr.accparties = 7
             THEN
                v_accident_parties_involved   := 'ALLPARTY';
             ELSE
                v_accident_parties_involved   := NULL;
          END CASE;
    
          SELECT COUNT ( * )
          INTO v_case_count
          FROM import_legacy_pursuit
          WHERE case_number = cr.loccasenum;
    
          IF v_case_count = 0
          THEN
             DBMS_OUTPUT.put_line ('DONE');
    
             -- PLEASE assign all cursor values to some variables ; e.g
             v_lo_number   := cr.loccasenum;
    
             INSERT INTO import_legacy_pursuit
            (
                case_number, fli_reason
            )
             VALUES (v_lo_number, v_reason_for_flight);
          ELSE
             DBMS_OUTPUT.put_line ('Nothing inserted');
          END IF;
       END LOOP;
    
       COMMIT;
    EXCEPTION
       WHEN OTHERS
       THEN
          ROLLBACK;
          DBMS_OUTPUT.put_line (SUBSTR (SQLERRM, 1, 300));
          RAISE;
    END;
    

    Concerning

  • I'm trying to get the bookmark icon in my toolbar to the right of the icon of the House. I right click on the toolbar, and then customize the icon is displayed in the toolbar. When I close the popup on the toolbar icon in my toolbar disappears.

    I'm trying to get the bookmark icon in my toolbar to the right of the icon of the House. Then, right-click on the toolbar and then click Customize the icon in the toolbar. As soon as I close the pop of toolbar Customize the icon on my toolbar disappears. How can I get the Favorites icon to stay on my toolbar to the right of the icon of the House?

    Two things can cause the Bookmarks button to "disappear" from the Navigation bar when the customization mode is closed.

    1. the Menu bar - with File, Edit, View, etc. - shows.

    Since you have checked the answer first of cor-el solve your problem, I have not exposed on this point.

    2. the bookmarks toolbar shows, and this button is this toolbar.

    Is the Menu bar showing or not?

    Have you tried the reset bar of tools and commands that I mentioned?

  • Vista 64-bit now I changed my OS 32-bit now my web cam does not work, tried to get the drivers from dell but did not help

    of the vista 64-bit now, I changed my OS to Vista 32 bit , now my web cam does not work, tried to get the drivers from dell, but they are not available there. My laptop is studio-1537... Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hello

    I check your firewall settings to see if it can cause a conflict with the season chat software.

    Chris
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • small problem... two days trying to find the error

    Hey people, I'm trying to get two values from two different tables, to put in one that connect the two of them, I have work, but I'm trying to make it simpler and smaller.

    create or replace procedure baba
    (
    number of var_A,
    var_b varchar2
    )
    AS
    BEGIN
    Insert into baby (c, d)
    Select (c, table_c d, table_d where table_c.a = var_a and table_d.b = var_b);
    END;

    I'm doing two selection within one and insert the value directly to the third table. three days on that.
    When I compile it gives me the error missing support, weird.
    Thank you.

    Welcome to OTN. ;)

    Always mention your version of DB.

    Now, regarding your question - why do you need to apply this using procedure where a single DML will suffice?

    Ask yourself always, on the question of whether you should implement them using SQL or PL/SQL.

    As a general rule, try using SQL. If so you can not only go PL/SQL.

    Now,.

    create or replace procedure baba
    (
    var_a number,
    var_b varchar2
    )
    AS
    BEGIN
    insert into bebe ( c, d)
    select c, d
    from table_c, table_d
    where table_c.a = var_a
    and table_d.b = var_b;
    END;
    

    So I have remove these pins.

    It should work.

    N.B.: Not tested...

    Kind regards.

    LOULOU.

    Added: Also you can use the join between the table condition two - otherwise, it will produce product curtesian. ;)

    Published by: Satyaki_De on February 20, 2010 22:54

  • Get the user logged in PL/SQL

    Hi, I need to get the user name of the user currently connected to the database in PL/SQL.

    I discovered that this can be done by using the following statement:
    select USERNAME into user from v$session where audsid = sys_context('userenv','sessionid');
    The problem is that the above statement will work for a user with privileges higher (if I run it with a user at a disadvantage, I get a table or view is no mistake) and I need to do for any user.

    How can I do this?

    Thank you
    Komyg

    deleted duplicate caused by an error in the forum

    Published by: BluShadow on November 21, 2008 14:01

Maybe you are looking for

  • Import media has stopped working

    All of a sudden my import media has stopped working.  I get the fine window, I select the video I want to import, the window closes, but the video does not matter.  Just before this happened he began to import some videos that I didn't, so I stopped

  • iPhone & iPad not no projection in iTunes

    I have 10 installed windows on my laptop computer and the latest iTunes. However, since I got the new iTunes to update my phone and iPad does not connect to it. I can access my photos and ILO in the folders on my computer if the connection is good. I

  • Order of movement OR 73xx, maximum speed

    Hello! Last time I was testing a new engine controller not. I discovered that when I put the gear 2000steps/s, the speed increases no more than 1968steps/s. I tried to put many configurations, but they do not work properly. I have to do some tests wi

  • BlackBerry Smartphones bb ID does not

    Hi can anyone please help me I can't get into my blackberry id I thought that I needed to reset my password so I did on the computer and he says: he managed and will not work when I try to open a session to it again can someone please help me xx

  • BlackBerry pearl 9105 smartphones - e-mail

    Hello Since I have my bb 9105 I receive emails on the message icon (no sms) and those containing links for e-mail, but I don't have any associated email. I use to have an account e-mail, but is already deleted... ive already CAAL my phone carrier and