Sqlplus, how to stop output to console
Hi,
I'm running the script to unload table into the file, and it works fine, myfile.dat getting its data,
I just want to stop rows I'm getting written into console display, anybody knows what option I can use for that?
That's what I haev inside my ksh:
sqlplus username/password@$_SID <<EOF
set colsep ,
set pagesize 0
set trimspool on
set headsep off
set linesize 150
spool /tmp/myfile.dat
SELECT COL1 FROM TABLE1
EOF
Tx
Trent
Hi,
You can call sqlplus with the -s options to avoid the login banner and prompt.
And use set termout off to keep stuff from displaying.
[edit]
Actually the termout is for script I think.
From command line you can do it that way :$ sqlplus -s scott/tiger << EOF 2>&1> /dev/null
select sysdate from dual;
select table_name from user_tables;
exit
EOFEdited by: Nicosa on Dec 2, 2010 10:47 AM
Similar Messages
-
How to stop messages in console
Hello,
I recently installed NAS Navigator 2 software for a Buffalo network drive I had. I then uninstalled the software, removed all associated files, and rebooted. Now my system.log in Console is being flooded with these messages:
2/13/11 3:16:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower[45737]) posix_spawn("/Library/PrivilegedHelperTools/NasNavigator2.app/Contents/MacOS/Na sNavigator2", ...): No such file or directory
2/13/11 3:16:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower[45737]) Exited with exit code: 1
2/13/11 3:16:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower) Throttling respawn: Will start in 60 seconds
2/13/11 3:17:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower[45822]) posix_spawn("/Library/PrivilegedHelperTools/NasNavigator2.app/Contents/MacOS/Na sNavigator2", ...): No such file or directory
2/13/11 3:17:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower[45822]) Exited with exit code: 1
2/13/11 3:17:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower) Throttling respawn: Will start in 60 seconds
2/13/11 3:18:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower[45908]) posix_spawn("/Library/PrivilegedHelperTools/NasNavigator2.app/Contents/MacOS/Na sNavigator2", ...): No such file or directory
2/13/11 3:18:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower[45908]) Exited with exit code: 1
2/13/11 3:18:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower) Throttling respawn: Will start in 60 seconds
2/13/11 3:19:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower[45994]) posix_spawn("/Library/PrivilegedHelperTools/NasNavigator2.app/Contents/MacOS/Na sNavigator2", ...): No such file or directory
2/13/11 3:19:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower[45994]) Exited with exit code: 1
2/13/11 3:19:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower) Throttling respawn: Will start in 60 seconds
2/13/11 3:20:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower[46079]) posix_spawn("/Library/PrivilegedHelperTools/NasNavigator2.app/Contents/MacOS/Na sNavigator2", ...): No such file or directory
2/13/11 3:20:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower[46079]) Exited with exit code: 1
2/13/11 3:20:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower) Throttling respawn: Will start in 60 seconds
2/13/11 3:21:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower[46174]) posix_spawn("/Library/PrivilegedHelperTools/NasNavigator2.app/Contents/MacOS/Na sNavigator2", ...): No such file or directory
2/13/11 3:21:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower[46174]) Exited with exit code: 1
2/13/11 3:21:56 PM com.apple.launchd.peruser.501[174] (jp.buffalo.NASPower) Throttling respawn: Will start in 60 seconds
How can I stop them? Thanks.
-MikeHow did you uninstall it? Did it come with an uninstaller? jp.buffalo.NASPower is probably the name of the file you want to remove. It is probably in ~/Library/LaunchAgents
-
How listening audio output with console digidesign 002
i have conncected the fcp5 with the digidesign 002. I have made all the necessary settings, that provide the connection, through audio/video settings/user preferences etc... Though, when i put something to the canvas, i can listen from the speakers, but the channels of didgidesign don't communicate with the audio channels in fcp.2)when i do log and capture from the cam, the logged footage has sound, but i can't listen to it, when the sound is connected via digidesig. It seems that something is wrong but i don't know what. Does anyone knows?
You have to use the Digi-002 in Standalone mode, as a mixer. Press the standalone button and then select 'Yes'.
I connect the optical audio cable from my G5 into the optical audio in the back of the 002. You'll have to read the manual to make faders 7 and 8 'listen' to the optical port rather than the XLR inputs. And then in System preferences on the MAC, the Audio Out would be Optical Digital-Port out.
The only time I use the 002 in it's regular mode is i) when I'm using Pro Tools, or ii) when I'm using Garageband and using the 002 as my audio input device.
Hope that helps.
Jim -
How to stop PO output when the indicators are updated with a prog. **URGENT
Hi,
I have developed a update prg which will update the Final invoice indicator and Goods reciept indicator in SRM as well as in R/3 only for 'ORDERED' PO's. This was done using BBP_PO_PD_UPDATE FM. Everything is working fine, all the indicators are getting updated as expected both in SRM and R/3.
Only problem is that when the indicators are updated in SRM, PO Output is getting generated which should not happen.
Do you have any idea how to stop the OUTPUT.
This is very urgent.
BR,
Parvez.PO output
PO Output problems
disable PO output on po change in SRM -
How can I run external console program, printing output to JTextPane?
How can I run external console program, printing output to JTextPane?
I have a console app. written in C++ and I would like to run in it from java swing app. and I would like to see its output in a JTextPane.I have used this article
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
to successfully pipe output from jboss batch files to a JTextPane. -
How to stop the Debug-master-Beacon command from console
Q: How to stop the Debug-master-Beacon command from console
A:
-"Debug-master-beacon" This command is basically used to see the master beacon sent and the received .
-This command will help in figuring out master discover issues.
-You can run this command only from the console of the Ap.
- Once you run the command you can stop it only by typing the command
"No debug-master-beacon"
Sample command belowHi Shravanthi,
How the Substitution will work for stopping the user from changing the Depreciation key in asset master data. Can you please ellaborate in details.
Regards,
BABA -
How to stop Gdm & fall back in console to edit the Gdm-login settings.
Unfortunately, I didnt configure, Gdm-user-login settings and started Gdm to play.
Now, Gdm prompts to login, but i cant, login with the username or as root.
so please somebody reply , how to stop Gdm & fall back in console to edit the Gdm-user-login settings.ewaller wrote:Well, if I catch you before you waste your time, try rebooting, edit the kernel command line in grub and add '3' at the end.
Or boot from your install media, mount / at /mnt, and edit your /etc/inittab or /etc/rc.conf, depending on how you are staring GDM.
Grub bootloader failed to be installed on my system. so i have installed Syslinux. And in Syslinux, i did'nt find any option to edit.
However, i have re-installed Arch and now Arch-gnome up & running. -
How to adjust output in sqlplus
Hi
I want to take a report from the below query from unix sqlplus.
However the output of the query is not tidy.
I used
set linesize 121, but it doesnt work again.Any other suggestion?
select tb.owner,count(*) "current_extents",ex.segment_name,tb.max_extents from dba_extents ex ,dba_tables tb where segment_name in (
select table_name from dba_tables where MAX_EXTENTS < 500)
and ex.segment_name=tb.table_name
group by ex.segment_name,tb.max_extents,tb.owner
order by 1Hi there
I used set linesize 131
but output is like:
OWNER current_extents SEGMENT_NAME
MAX_EXTENTS
LAUD 306 BLOCKRISKLINK
350
LAUD 259 EXCEPTION_INCOMING
350
AZI 208 TRNADDR
400 -
Reg: How to Stop Polling of JDBC Adapter without Scheduling the adapter
Dear Gurus,
Here I am having one requirement. My clients wants to send data from JDBC adapter (ORcale System table) to R3 system via RFC.
His Requirement::
1. He is not telling the time of data flow from Oracle server so that based on that we can schedule the adapter in the Communication Channel monitoring (Availablitiy Time Planning) or Else we can Schedule by deciding the setting of the polling interval time.
2. He is telling that When ever he waants to send the data he will place one dummy file in the File Adapter FTP location so that it will became an Indication for u to poll the jdbc adapter and to transfer the data to R3.
3. Untill he keeps the file or gives indication he doesn;t want to communicate with Oracle server due to some security and it s a most important data base he doesn't want to disturb that Oracle Server as so many business are running on that.....
We Proposed::
1. Atleast you need to tell the scheduling time or poll interval time so that we can schedule our adapter.
but he s not accepting for this
2. Atleast U need to give access for Data base to enter one more extra field like STATUS CODE so that we will add one number and we keep on Update in the Update table and based on that Update table statement it will poll.
but he s not even accepting for this
3. Finally we prposed that to create another table in the Oracle SYstem as Dulplicate Table which is similar to Standard Orginal table when ever he wants to pick the data please keep that data in this Duplicate TABle so that JDBC adapter will pick the data from thsi TABLE instead of picking the data from that standard table so that it will not effect any standard table data in the table.
but he s not even accepting for this
We have done some R & D:::
1. WE approached even through BPM and via switch conditions is one scenario
FILE RECEIVE >SWITCH CONDITION> RECEIVE AND SEND or else EXIT
2. Using correlation in anotehr scenario means correlating File adapter and JDBC and based on one dynamica value it will goes to SEND STEP ( RECE IVE --> RECEIVE --> SEND STEPS )
Even though we know this...concept that...we jsut tried::
In BPM we can control the flow in XI 3.0 but we cannot Stop the Polling of JDBC adapter at backend because one the data comes from FILE adapter it will keep on HOLD untill it receives the JDBC from Oracle then based on the condition or Correlation it will goes futher SEND step means after that file adapter is picking file or not ...what ever it may be JDBC will polls at backend and brings that data to BPM"
Hence sugest me How to Stop Polling of JDBC Adapter without Scheduling the adapter or else using STATUS CODE Update statements in JDBC Tables
Regards:
Amar Srinivas EliHi! All,
Finally I decided to do the scenario in two steps:
1: FILE REQ --> JDBC REQ -->JDBC RES --> FILE RECV
2: FILE RECV --> RFC
But I am getting issue while doing first scenario
Desgn :
I have created 2 Synchronous interfaces :
1) FILE 2 JDBC REQ
In this a) out put message is FILE Req
b) Input msage:; FILE RES
2} JDBC2FILE RECV
a) Output mesage;; JDBC REQ
b) Input Msge :: JDBC Response
Mappings:
1) File REQ-->JDBC REQ
2) JDBC RES-->FILE RES
Interface mappings:
1: FILE 2 JDBC REQ--> JDBC 2 FLE RECV
CONFIGURATION ::
1: One Seder File CC
2: Two reciever CC's one is for JDBC RECEIVER and other s FILE RECEIVER
3; One Sender Agreement
4: 2 Recver agreements
5: One Interface Determination and
6: One RECCV Determination
My Question;;
1. First let confirm whether my development steps are right or not ?
2: Another thing s I am not sure reg Configuration Steps means
whetehr one interface determination and one Receiver Determinations are required or not as these are synchronous Interfaces
3: main Issue is::::
If my scenario s FILE2RFC2FILE then I will get RFC response automatically but here issue is this is JDBC
My reqquirement is By sending one Field from fILE to JDBC REQ it needs to send entire TAbLE records as a Response to file as XML
without having Sender JDBC how can I send the JDBC Res to FILE and If that is the case then again JDBC adapter is polling which is contradict to the client requuirement which i explained above.
pleas suggest me the Detailed steps mainly Colloboration agreements and logical routings and
also explain in detail if i can go for BPM
Also give cleear blogs but before giving make sure that it contains detailed screen shots because aIready gone thorugh
Scenario File-JDBC-RFC
File<-->JDBC Sync coomunication.
https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/file-rfc-file(Without+BPM)
/people/luis.melgar/blog/2008/05/13/synchronous-soap-to-jdbc--end-to-end-walkthrough
Regards::
Amar Srinivas Eli -
How to stop while loop when a specified function is terminated?
I want to make a program which has 2 thread, one of which is to control some devices, and the other is to measure outputs of the devices.
To do that, I should make a 2 independent loops, but there comes a problem here.
I want to terminate 2 loops at the same time, but it's difficult for me to do that, because when I try to notify upper sequence's termination to lower loop by some value change, they have some dependency.
That's why I need your help. I want to know how to stop lower loop when the upper sequence's termination keeping their independency.
Please let me know. Thank you.
Attachments:
help.JPG 200 KBIs the upper loop commanding the lower loop at all? I would think you would have some type of communication between the loops. Just use that communication to send a stop command. Or the next best way is to just simply use a notifier.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
How to stop the waterflow?
Hi,
I need to make the water coming from the shower, when shower is clicked.
And the water should stop after 5 seconds.
The code is below.
The water is flowing nicely. But I do not manage to stop it.
I added a timer, which starts when the shower is clicked. And should stop the waterflow after 5 seconds have passed.
With the lines
if (stop = true)
break;
trace("break");
it looks like the for loop is breaking right from the start, from the first second. But not completely, somehow 1 or 2 drops are flowing.
Without these lines nothing is happening when the time is over (5 seconds from clicking the shower). Water is just flowing.
Can someone help? How to stop the water flowing after 5 seconds and clean of the array and stage from the waterdrops?
Many thanks in advance!
import flash.display.MovieClip;
import flash.events.Event;
import flash.utils.Timer;
import flash.events.TimerEvent;
var WatertropArray: Array = new Array();
var WaterArea01: MovieClip = new WaterArea();
var WaterBorder01: MovieClip = new WaterBorder();
var timer: Timer = new Timer(5000, 1);
var stopp: Boolean;
var i: uint;
Shower.addEventListener(MouseEvent.CLICK, waterFlowStart);
function waterFlowStart(event: MouseEvent): void
addChild(WaterArea01);
WaterArea01.x = WaterArea00.x;
WaterArea01.y = WaterArea00.y;
WaterArea01.alpha = 0;
addChild(WaterBorder01);
WaterBorder01.x = WaterBorder00.x;
WaterBorder01.y = WaterBorder00.y;
WaterBorder01.alpha = 0;
stopp = false;
timer.addEventListener(TimerEvent.TIMER, waterFlowEnd);
timer.start();
addWaterdrops();
Shower.removeEventListener(MouseEvent.CLICK, waterFlowStart);
function addWaterdrops(): void
for(var i: uint = 0; i < 100; i++)
var waterDrop: MovieClip = new Waterdrop();
addChild(waterDrop);
waterDrop.x = Math.round(Math.random() * stage.stageWidth / 1.5);
waterDrop.y = Math.round(Math.random() * stage.stageHeight / 3);
waterDrop.alpha = 0;
waterDrop.rotation = -12;
WatertropArray.push(waterDrop);
trace("waterdrops added");
moveWaterdrops();
function moveWaterdrops(): void
waterDrop00.addEventListener(Event.ENTER_FRAME, waterFlow);
function waterFlow(event: Event): void
for(var i: uint = 0; i < WatertropArray.length; i++)
WatertropArray[i].y += 8;
WatertropArray[i].x += 5;
//trace(i);
if(WatertropArray[i].hitTestObject(WaterArea01))
WatertropArray[i].alpha = Math.random();
WatertropArray[i].scaleX = Math.random();
WatertropArray[i].scaleY = WatertropArray[i].scaleX;
if(WatertropArray[i].hitTestObject(WaterBorder01) || WatertropArray[i].x > stage.stageWidth || WatertropArray[i].y > stage.stageHeight / 2)
WatertropArray[i].x = Math.round(Math.random() * stage.stageWidth / 1.5);
WatertropArray[i].y = Math.round(Math.random() * stage.stageHeight / 3);
WatertropArray[i].alpha = 0;
if(stopp = true)
break;
trace("break");
function waterFlowEnd(event: TimerEvent): void
trace("TIME OVER");
stopp = true;
stoppTrue();
function stoppTrue(): void
for(var i: uint = WatertropArray.length; i > WatertropArray.length; i--)
remove(i);
function remove(idx: int)
removeChild(WatertropArray[idx]);
WatertropArray.splice(idx, 1);
trace("REMOVED");
removeChild(waterDrop00);
trace(i);thanks again, kglad.
changed the for-loop and it is reaching now the last functions as well.
but there is still a but ... an error message.
function waterFlowEnd(event: TimerEvent): void
trace("TIME OVER");
stopp = true;
stoppTrue(); // line 106
function stoppTrue(): void
for(var i: uint = WatertropArray.length-1; i >= 0; i--)
trace("stoppTrue");
remove(i); // line 115
function remove(idx: int)
removeChild(WatertropArray[idx]); // line 123
WatertropArray.splice(idx, 1);
trace("REMOVED");
//removeChild(waterDrop00);
trace(i);
and the output panel gives the following (tested with 5 water drops, 5 items in array):
TIME OVER
stoppTrue
REMOVED
0
stoppTrue
REMOVED
0
stoppTrue
REMOVED
0
stoppTrue
REMOVED
0
stoppTrue
REMOVED
0
stoppTrue
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/removeChild()
at TitavannisinglisekeelneAS3_fla::MainTimeline/remove()[TitavannisinglisekeelneAS3_fla.Main Timeline::frame1:123]
at TitavannisinglisekeelneAS3_fla::MainTimeline/stoppTrue()[TitavannisinglisekeelneAS3_fla.M ainTimeline::frame1:115]
at TitavannisinglisekeelneAS3_fla::MainTimeline/waterFlowEnd()[TitavannisinglisekeelneAS3_fl a.MainTimeline::frame1:106]
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
What is that error message trying to tell me? -
How to stop the spinning wheel?
How to stop the spinning wheel?
Back up your documents and everything else important to you, not that there is any reason to believe your hard disk may be failing, but the symptoms you describe may presage an impending disk failure, and you should have backups anyway.
Boot OS X Recovery by holding ⌘ and r (two fingers) while you start your Mac. At the Mac OS X Utilities screen, select Disk Utility. Select your startup volume (usually named "Macintosh HD") and click the Repair Disk button. Describe any errors it reports in red.
When it finishes restart your Mac and test again for operation. If it's still not behaving as you expect it should, please post the results of EtreCheck in accordance with the following instructions:
Apple Support Communities contributor etresoft wrote a very useful app to quickly gather certain system information that may help point to a cause of this problem. Go to his website, download and run EtreCheck:
http://www.etresoft.com/etrecheck
Etrecheck will be in your Downloads folder. Open it from there. You may see the following dialog box:
Click Open - etresoft contributes to this forum frequently and can be considered a trustworthy developer.
It will take a moment to run as it collects its data.
Copy and paste its output in a reply.
Do not be concerned about anything that says "Problem" or "failed".
EtreCheck was designed to remove any personal information (such as your computer's name and serial numbers) but if you see anything that looks like an email address or any other personal information that should not be divulged to others, please delete or obscure that information when you post the reply.
When you are finished with EtreCheck, quit the program. It occupies very little space, and you can keep it or drag it to the Trash as you wish. -
How to Stop Message Driven Beans to go into an infinite loop
hi,
Am kiran peddireddy, have the following problem. When i sent a chunk of 50 messages to the MessageDrivenBean, let us say 25 have passed and at the 26th message there was a problem and could not deliver. so, it throws an exception due this the MDB goes into an infinite loop. Can anyone suggest how to stop the MDB from infinite loop. I need help for this ASAP.
thanks,
Kiran Peddireddy.To Crackers,
You have to let the container deal with the message - expire/cancel the message after a certain number of tries. This is easy to manage in the WLS console. Which version of Weblogic has this option? 7.0 or 8.1 ?
I didnt see this option in Weblogic 7.0!!!!!!
Corect me if I am wrong.
Seetesh -
How to stop a while loop after certain time using Elapsed time vi
how to stop a while loop after certain time using Elapsed time vi.
Hi Frankie,
Just place the Elapsed Time VI inside the WHILE loop, and wire the 'Time Has Elapsed' output to the conditional terminal in the lower right corner (which should be set to 'stop if true' by default).
In the future, please post your LabVIEW questions to the LabVIEW Forum. You have a much better chance of getting your questions answered sooner, and those answers can then help others who are searching the LabVIEW forums. Thanks!
Justin M
National Instruments -
How to stop spooling and get error or status of the statement
Hi All,
I am using the bellow in .sql file to generate a spool file which is called from a shell script.
The issue is whn i kill the job the .csv file is still generated and doesnt thow any error.
Could any one please let me know how to stop spooling if the script end in between or catch the status of the error and email if spooling stops in between.
Please help. Thanks
below is used in .sql
set feedback off
set term off
set trimspool on
set pagesize 0
exec dbms_output.disable
exec dbms_output.enable(40000)
set linesize 2000;
set long 2000;
WHENEVER SQLERROR EXIT 1 ROLLBACK
whenever oserror exit 1 rollback
alter session set global_names=false;
spool $HOME/data/abc.csv
select statement;
spool off;
exit
sql is called from this script:
#!/bin/ksh
status=`sqlplus -s / @$HOME/sql/extract/abc.sql `
status1=$?
if [ $status1 -ne 0 ]
then
mailx -s "Fatal - Error in Extraction process " [email protected]
fi ____________________________________
Edited by: user11942774 on 1 Mar, 2012 4:07 AMHi, dczay, and welcome to the Community,
Sign in to your Skype account via the Skype website; the link to Sign In appears at the upper right corner of the website page.
Cancel the subscription.
Please contact Skype Customer Service to explain the situation and to request a refund.
(The blue type is actually a link to the instruction related to contacting Skype Customer Service and how to request a refund.)
Regards,
Elaine
Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!
Maybe you are looking for
-
Enter Text in Dropdown LOV APEX 3.2
I have several list of values that are used on the oracle forms we have created. Those work great etc. They are all data driven from oracle tables. Users would like to have the ability to add to these tables if they are entering data on a form that u
-
Insert two photos on one slide in iMovie 11?
I'm fairly new to iMovie but have had experience with Powerpoint presentations. I am doing a project that has a lot of picture elements inserted in it. Is there a way I can place two photos in one frame and have them transition onto it? To make this
-
Left pane of the console of my Weblogic Server 6.1 does displayed
The left pane of my werblogic console missing. I tried uninstall and reinstall weblogic server to get rid of the problem, but the problem still remains no matter whatever I did. Is anyone can help? Thanks in advance.
-
Pages bug? Arrows look cut in PDF viewers
Hello all! I have Pages 2.0.1v2 on OS 10.4.7. When I export a document as PDF, the arrows I created with shapes appear slightly cut at the top in both Preview and Acrobat Reader 7. Here is a screenshot: http://artemio.net/tmp/PagesPicture1.png Has an
-
i need to read bname, netwr from vbak where vbeln = clientordernum