After running sql of the lot, it is disconnected

Hi all

I wrote a batch program to run a pl/sql procedure. But after running, it disconnects.

But I want to continue in the same session

echo exec tracer.trace_pck.start_('alter session set sql_trace=true') | sqlplus hr/hr

Output:

Press a key to activate tracing

SQL * more: Production of liberation 11.2.0.2.0 Thu Oct 10 15:59:56 2013

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

Connected to:

Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production

SQL >

PL/SQL procedure successfully completed.

SQL > disconnected from Oracle Database 11 g Express Edition Release 11.2.0.2.0.

Production

Trace enabled successfully. Press a key for entry you sql

If you use a batch file, I assume you are using windows OS.

Essentially, what you need to do is call a sql file in the batch file and then download the sql file to call all the other files.

Batchfile test.bat file test.sql sql calls

sqlplus /password @test.sql

test. SQL calls test1.sql and test2.sql and stops

@test1.sql;

@test2.sql;

"exit";

test1. SQL displays the current sid and serial No. FRO our name and our session

Select 'test1', sid, serial # in session $ v

where audsid = userenv ('sessionid');

test2. SQL displays the current sid and serial for our name and our session No.

Select "test2", sid, serial # in session $ v

where audsid = userenv ('sessionid');

When you run this you get t output similar to the following: (your SID and serial will be different)

' TEST SID SERIAL #.

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

771 97 Test1

' TEST SID SERIAL #.

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

771 97 test2

It shows two separate sql files have been called, but are always in the same session

Tags: Database

Similar Questions

  • Error after running system update: "the Group Policy Client service has no logon. Insufficient system resources exist to complete the requested service".

    Original title: run windows Vista Ultimate 32 - is system update, get now

    Facts: OS Vista Ultimate 32 bit

    Antivirus - Eset NOD32
    ESET prompted me to leave with the latest updates window, made it regularly, menu updates box Eset Windows open.  I accept the standard updates. Computer needs to restart to complete the installation.  I accept.  Windows restarts comp, I connect, BONE implements internal whatnot.  Screen turns off, a blue screen, stop, restart cycle begins = restart - screen down - blue - boot in SafeMode etc.   Finally, I use the Vista ultimate installation disc to break the cycle.    I repair the startup procedure, then restore point 3 days for a previous backup of the system.  Now I get "The Group Policy Client service failed the logon.  Insufficient system resources exist to complete the requested service".
    What should do? What should do?  Buy a Mac?

    Hello PatrickRatley,

    Often we see odd behavior as the result of a program from loading at startup.

    To solve these, we use the clean boot troubleshooting.

    The following article describes this process:

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    If it does not and this ends up really being something to do with group policy, you can post in our TechNet forums:

    http://social.technet.Microsoft.com/forums/en-us/category/windowsvistaitpro

    Best regards

    Matthew_Ha

  • Unable to connect to the printer via ThinPrint error: "serial0: unable to connect to the virtual printer daemon after 25 attempts." The device will be disconnected.

    I started this thread on the debate under of the "Fusion free v2.0.3" but Michael suggested I post this as a new thread, because it turns out that my problem was not due to the much discussed most recent update security Max OS causing ThinPrinting to break.  Whenever I have start up of my (Win XP and Windows 7) VM beta I get the above error message, and therfore cannot take advantage of the ability of merger of ThinPrint print on my printer Mac network.  Michael asked several log files, I have attached 3 in this post and others attached to my next post, so I hope you smart people of VMWare will be able to help me with this problem.  Thanks in advance!

    Ron

    I got a response from ThinPrint with a possible solution - the problem may come from a file/etc/printcap obsolete, which refers to a computer that no longer exists. The DNS lookup may be a delay of 30 seconds and can block the process of thnuclnt. The file/etc/printcap file contains a copy of the configuration of the printer, but it is not necessary for the thnuclnt. It is generally not yet created by OS X by default, but it seems that previous updates to the OS X system or printer drivers can be turned on at any given time. Subsequently, the option got turned off, but the old file was left with outdated information.

    Could you try to rename the file/etc/printcap file and see if it eliminates the delay of 30 seconds? To do this, run Terminal and use the following command:

    sudo mv/etc/printcap /etc/printcap.bak

  • Run SQL failed with the authentication failure

    Hi all, I have access to a large grid control to manage my small group of data, I'm not super user, I am only a dba user access to databases in mi cluster. Then, when I try to run SQL using "execute SQL" link I get a message that says "LOG: Local Authentication failed...". PAM attempt authentication... "WFP has failed with the error: authentication failure.

    But, when I use the 'SQL Worksheet' link to run the same SQL that works very well, is not possible to run SQL using the other link? What's wrong? Thanks in advance.

    You have not set up the setting with agent PAM, please follow the notes 422073.1 and check.

  • SQL * more the 'timing' in SQL Developer command

    I installed SQL Developer version 4.1.1.19. In the sql worksheet, how can I use SQL * more order 'timing' in a script to see a time elapsed SQL? The "Timing" on 'set' did not return any info after running SQL, and 'calendar beginning mon_timer' back 'command Timing is obsolete. Help, please.

    Thank you

    • As you can see, there is no calendar information in the script output log.
    • Then I tried on the discussion forum, found it can be enabled in "tool > preference > Database > startup script" and set as startup script:

    Set serveroutput on

    set timing on

    • However, 2 questions are:
    1. the calendar that he returned is NOT the elapsed time of my stored procedure to run. He simply choose the 2 time points its time, before and not after MS point run. Set timing on is therefore not a solution for me.
    2. He did not follow the instructions in the startup script. After that I put the calendar in the startup script, stop & restart SQL Developer, same laptop charging, timing still on. The only way to turn off now is to configure it to NOT use

    any startup script.

    • Then I developed my own coding as a solution:

    3. control of the COIL

    VAR bv_start_ts VARCHAR2 (30)

    VAR bv_end_ts VARCHAR2 (30)

    VAR bv_elps_ts VARCHAR2 (30)

    DECLARE

    v_start_ts VARCHAR2 (30);

    BEGIN

    SELECT TO_CHAR (SYSTIMESTAMP, 'yyyymmddfxDyhh24miss.ff6') INTO v_start_ts FROM DUAL;

    : bv_start_ts: = v_start_ts;

    END;

    /

    IMPRESSION bv_start_ts

    EXEC pmsmmi.rpt.rpt_ethncty_race_smry (15);

    DECLARE

    v_end_ts VARCHAR2 (30);

    BEGIN

    SELECT TO_CHAR (SYSTIMESTAMP, 'yyyymmddfxDyhh24miss.ff6') INTO v_end_ts FROM DUAL;

    : bv_end_ts: = v_end_ts;

    END;

    /

    IMPRESSION bv_end_ts

    EXEC: bv_elps_ts: = TO_CHAR (TO_TIMESTAMP (: bv_end_ts, 'yyyymmddfxDyhh24miss.ff6')-TO_TIMESTAMP (: bv_start_ts, 'yyyymmddfxDyhh24miss.ff6'), 'hh:mi:ss.ff6');

    IMPRESSION bv_elps_ts

    SPOOL OFF

    • Then I got what I want, the answer is in the 'PRINT ': bv_elps_ts

    SQL > VAR bv_start_ts VARCHAR2 (30)

    SQL > VAR bv_end_ts VARCHAR2 (30)

    SQL > VAR bv_elps_ts VARCHAR2 (30)

    SQL > DECLARE

    v_start_ts VARCHAR2 (30);

    BEGIN

    SELECT TO_CHAR (SYSTIMESTAMP, 'yyyymmddfxDyhh24miss.ff6') INTO v_start_ts FROM DUAL;

    : bv_start_ts: = v_start_ts;

    END;

    /

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:00.031

    SQL > PRINT bv_start_ts

    BV_START_TS

    -----------

    20150702Thu112617.775545

    SQL > EXEC pmsmmi.rpt.rpt_ethncty_race_smry (15)

    PL/SQL procedure successfully completed.

    SQL > DECLARE

    v_end_ts VARCHAR2 (30);

    BEGIN

    SELECT TO_CHAR (SYSTIMESTAMP, 'yyyymmddfxDyhh24miss.ff6') INTO v_end_ts FROM DUAL;

    : bv_end_ts: = v_end_ts;

    END;

    /

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:00.062

    SQL > PRINT bv_end_ts

    BV_END_TS

    ---------

    20150702Thu112630.805786

    SQL > EXEC: bv_elps_ts: = TO_CHAR (TO_TIMESTAMP (: bv_end_ts, 'yyyymmddfxDyhh24miss.ff6')-TO_TIMESTAMP (: bv_start_ts, 'yyyymmddfxDyhh24miss.ff6'), 'hh:mi:ss.ff6')

    PL/SQL procedure successfully completed.

    SQL > PRINT bv_elps_ts

    BV_ELPS_TS

    ----------

    + 00:00:13.030241000 000000

    SQL > SPOOL OFF

  • Computer does not start after running the utility Boot Lenovo.

    Hello
    I replaced the power supply with a CX550M of Corsair, increased memory by exchanging the 4 GB to 8 GB for a 16 GB total, I added a hybrid 2 TB Seagate HDD and all worked fine until yesterday, about 1 month.
    Yesterday, I decided to run all the tests of the Lenovo startup disk and after that I restarted, the computer does not start.
    When I press the power button, the fan starts and it stops after 3 or 4 seconds and nothing happens, the monitor says no signal, I removed the external USB disk and printer, I reoved the second drive and the same thing heppens.
    Any idea what this problem could be? Would it be a bad power supply?
    Thank you

    Mario

    Resolved, I erased the memory CMOS, moved to following ankle boot, back up the cmos.

    Thank you

  • How do you run a stand-alone program after its installation on the CD - RW disc

    How do you run a stand-alone program after its installation on the CD - RW disc

    How do you run a stand-alone program after its installation on the CD - RW disc

    Programs are not * install * to a CDRW at least that the CDRW is seen as a disc using the writing software to package such as DirectCD (Roxio) or OnCD (Nero). A disk used with writing software by packages cannot be used on any PC.

    Files are copied to a CD - RW for storage and retrieval. If the program installs, it install in general in C:\Program Files or similar and often drop files into \Windows and other places, too.

    -steve

  • I can't open the email in hotmail after run CC cleaner and PC pro.

    When I try to open an e-mail I get the loading on the lower left corner, but that's all. What can I do?

    Original title: I rebooted after executing C Cleaner and PC Pro and you can no longer open the emails in hotmail

    Hi BrentBenedict,

     

    Thanks for posting your query in the Microsoftcommunity forums. If I understand you correctly, you have a question with opening of emails in hotmail after run CC cleaner and PC pro. I understand it must be frustrating, but don't worry, we are here to help solve your problem and guide you in the right direction.

    Method-

     

    I would have you post your request in the forums of hotmail as your question will be better answered over there.

    Check out the link-

    http://answers.Microsoft.com/en-us/windowslive

    We know if you need help. We will be happy to help you.

  • Unable to connect to the Internet after running COMBOFIX

    Under XP.  After running ComboFix to remove the "rootkit" virus"that wiped out AVG and some windows updates, I got online and downloaded AVG free 2012 and windows update.  Everything seemed fine and I shut down the computer for the nite.  Next day morning... can't get online!  When I try to connect it says "acquiring network address"... Help!

    I find the DHCP client.  It is not "STARTED".  I got it started and restarted.  Then, I went to the guest of cmd and tried to reset the TCP/IP stack.  Should not the command netsh int ip reset c:\resetlog.txt suggested... Windows help page I want to enter this command, press enter and he would immediately return to the following command-line (with no info)?  I typed in ipconfig/all and IP of Windows Configuration it is said... The active IP routing... N ° next to Proxy active WINS... No. I then typed in ipconfig / renew it said no operation can be performed on wireless network connection, although it has its media disconnected.   He said the same thing for the connection to the Local network?  What to do next! ??

    1. do you reinstall the latest version of the driver for your network card?

    2. don't ask you for help guided in a malware removal specialists forums that I have recommended?

    3. When you run "netsh int ip reset c:\resetlog.txt" in a command prompt window, nothing is displayed at the command prompt.  The TCP/IP stack is reset and log what is done is written to the specified file.  Have you looked in the file created at C:\resetlog.txt?  If so, did he say?

    4. have you looked in the Device Manager (start > run > devmgmt.msc > OK) to see if there is an error indicated for your network card?  If you see the error icon, double-click the entry of the adapter and report, which is shown under "device status".

    5. the extract from the output of the ipconfig/all command what you have provided is normal.  Please provide the full results of ipconfig/all.  Right click in the window to prompt for the command 'Select all' then pres Enter copy selected data, so you can paste it into your reply.

  • PC automatically shutsdown after every 30 min. I have the last MS Security Essentials installed and running and also the MS Malicious software installed, but none are able to detect any virus or harmful software. Please help in this regard.

    PC automatically shutsdown after every 30 min.  I have the last MS Security Essentials installed and running and also the MS Malicious software installed, but none are able to detect any virus or harmful software.  Please help in this regard.

    You get a bsod?

    Please check the event log to see if there are errors, helping to explain what is happening. Also check the c:\windows\minidump folder. Are there files .dmp created here with the dates that it closed? If so please download them on your skydrive so watch us closer.

    See you soon.

    MyPcHealth - free tools

  • My system hangs during startup "for the first time" after running the system recovery.

    HP G62 - 227 CL

    Win 7 (64 bit)

    No error message, in itself; just a screen frozen on reboot.

    Months, my computer has suddenly started glitching on me.  I stopped and tried a reboot.  The system froze on start with flying colors.  System recovery tried several times but must have made a mistake because he wouldn't.  Resolved to buy a new hard drive and reinstall from the recovery disks.  Delayed unnecessarily until today, months later.

    Before you buy a new hard drive, has decided to relaunch the system recovery.  It worked!  I tried the option that has deleted everything and restored to the software and factory settings.  Everything seemed to work like a charm: hard drive reformatted, reinstalled software, the system prompted me to reboot.  Yes, I did.  Windows started to boot, "Preparting your computer for first use of Setup" appears... and freezes.  For hours.  Hard drive led is off.

    BTW, made sure the button Wi - Fi was on what I read on the problems of recovery if it was turned off when the program is run.

    Restarted.  Press F11.  A ran maintenance and checked the hard disk for errors.  There are errors.  Unfortunately, the default setting of CHKDSK does not repair them.   A opted for a command line.  RAND CHKDSK again with option '/ f/r' seen in other posts.  Here I am too ignorant to get the program to run properly, I guess.  I ran CHKDSK on the two player X and C.  No error found... sort of.  I know they exist because the system will not start.  (Yes, I tried again.)  Return to the command prompt, I tried to run CHKDSK on the drive C again.  This time I got a message that I must first dismount (remove?) the reader.  As I don't know what that means, I opted for the 'no' and have decided to post this help message.

    So.  Suggestions on what do I do then?  More specifically: How do CHKDSK to fix the errors it found?  I think the message was: "errors in $130 of the sector...". "It shows this message two times at the end of 62%.  Freezes for a long time.  Gets will still only slow down to a crawl again around 70%, but no longer.  Then returns to the start of system recovery screen.

    System recovery ran again for the pleasure.  Again, seemed to work like a charm.  Unfortunately, the laptop again sits frozen at "Preparing... for first use" screen again.  It heats more turns.  The audible fan works now plans higher... If none of this helps.  I am stopping and waiting for your advice.

    Thank you!

    Zac:

    My apologies for the delay to return to you.  Believe you that computer gremlins have not hit my very stable desktop which has been fine for years with sudden instability driver?  McAfee thanks for this most recent update!

    In any case, after several diagnoses and find the hard drive has failed in each of them, I decided to install a new copy of Windows 7 as a test while I wait for my upcoming recovery disks in the mail.  I did it by removing all partitions on the drive and do a fresh install.  Here again, everything seemed to go well until that (apparently) a certain area of the drive was used to save/installation of the files.  Even after CHKDSK runs several times (each time he repaired several defective sectors but stalled after only 10% of the disk) the system will become unstable - the last number being a blank screen after logging on to Windows.  So, all in all, epic fail on the side of the hard drive.  The new drive is installed and waiting for my recovery disks.

    Thanks for all your suggestions.  They have been a great help with information, but not with the results because of the training.

    M

  • reduce the size of icon, window and fonts after running system restore

    After running, all system restore my widows, fonts, and icons are way too big to fit on my screen. How can I reduce their normal size?

    Go to the website of the manufacturer of your computer/laptop > drivers and downloads Section > key in your model number > look for the latest Vista drivers > download/install them.

    Then:

    http://Windows.Microsoft.com/en-AU/Windows-Vista/change-screen-resolution

    Change the screen resolution

    Screen resolution refers to the clarity of the text and images on your screen. At higher resolutions, items appear sharper. They appear also smaller, so more items adapted to the screen. At lower resolutions, fewer items adapted to the screen, but they are larger and easier to see. At very low resolutions, however, images may have serrated edges.

    See you soon.

    Mick Murphy - Microsoft partner

  • After running System Restore my computer asks for a password when connecting and I don't remember the password.

    I am running Vista Home Premium on a laptop Toshiba Satellite L305.  I ran the system restore due to a problem of "Internet Explorer cannot display the website" (by Microsoft troubleshooting guide for this problem) and selected restore point earlier.  Now the computer asks for a password that I don't remember.  I tried all the possible passwords I can think.   There is only a single user account on this computer.  The administrator account should be disabled, it is not an option when connecting safe mode.  I don't have a system repair disc set.   Is it possible to run the system back restore to select a more recent restore point which does not require a password?  Or y at - it another way to connect to the computer?

    http://Windows.Microsoft.com/en-us/Windows-Vista/undo-system-restore

    If you tried to use the system restore to solve a problem, but the problem remained or other problems were introduced, you can undo the restore operation. After you cancel the system restore, you can try using a different restore point.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/default.aspx/KB/189126

    "Microsoft's strategy concerning lost or forgotten passwords"

    Microsoft cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Vista Media recovery obtaining and/or using the Vista recovery on your computer Partition to factory settings .

    There is no Vista free download legal available.

    Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.

    Normally, they do this for a cost of $ small.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Or borrow a good Microsoft Vista DVD (not Dell, HP, etc).
    A good Vista DVD contains all versions of Vista.
    The product key determines which version of Vista is installed.

    There are 2 disks of Vista: one for 32-bit operating system, and one for 64-bit operating system.

    If install a cleaning is required with a good DVD of Vista (not HP, Dell recovery disks):

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu

    http://support.Microsoft.com/default.aspx/KB/918884

    MS advice on the conduct of clean install.

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    Mick Murphy - Microsoft partner

  • New Microsoft Windows 7 Pro 64 workload on a Folio HP book - Windows will not update even after running the tool

    I received a book of 13-2000 HP Folio damaged software.  Had to reload Microsoft Windows 7 Pro 64.  Windows is not the updates even after running the Microsoft 'tool' and 'fix it tool.  What is the last manual way to solve this problem.

    What is the last manual way to solve this problem.

    The last manual is to install the latest version of the Windows update client.

    https://support.Microsoft.com/en-us/KB/3161647

    Best regards, VZ

  • Time protection real HELP in MSE stopped working after running the utility in Windows Live OneCare cleanup tool?

    Protection in real time in MSE stopped working after running the utility in Windows Live OneCare cleanup tool? Error Code: 0x800705b4

    Hello Wally,

    Thanks for posting your query on the Microsoft Community.

    The question error codes and the description that you get suggests that you are facing problem when using MSE. This problem may occur if other security software, such as antivirus, antispyware and antimalware programs, are totally or partially installed on the computer.

    I suggest to change firewall security settings or disable temporary security on the system software and try using MSE and see if it makes a difference. How to temporarily disable security software, you can view the article mentioned below.

     

    Disable the antivirus 

    http://Windows.Microsoft.com/en-us/Windows7/disable-antivirus-software

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attack.

    For more details, please see the article mentioned below and see that it helps you to fix the problem.

    Real-time protection lights in Microsoft Security Essentials

    Hope that the information provided is useful. Let us know if you have any concerns related to Windows. We will be more than happy to help you.

    Kind regards

Maybe you are looking for

  • It is necessary to have a license of script modul to run scripts?

    We have a lot of jobs, but only a few of them have a license for the scripts. Unfortunately, it is not possible to buy the module script separately. There are opportunities to run a script without the "script-maker-modul"? Greetz

  • Problemas con el operation del Messenger y el Live mail 20011

    No puedo entrar al del Messenger Mail. In the pantalla del cat appears unos numbers y letras Québec no puedo clear. Cuando estoy Live mail en el y quiero answering machine messages me returns: "no to is the application. What debo hacer?. (el equipo l

  • Aspire E1 - 522: no image when I put a DVD in. Where can I download graphics driver?

    When I put a DVD in no image shows upward, there is still audio and I can still click on options, but I don't see that I select. I also tried to play a video on youtube that appeared like a green screen. Ive looked and it says I have to update my gra

  • Error trying to use custom BB card not found CommandHandler

    I get the error that the net.rim.device.api.Command.CommandHandler is not found when I try to add any type of code to my application to open a personalized card. I searched the api, this Board and all samples and still can't seem to find a way to mak

  • HP Deskjet 3055 A, Scan Mac problem

    I have this printer last year, and it worked perfectly with my PC at the time, now I have a Mac and the printer works fine... but the Scan does not recognize the computer. Can you help me to find a possible solution? Thanks in advance!