Trying to find pl/sql that will show you what script is running
I'm looking for a way, inside sql, to find the name of an executing/running script from inside the script itself.
For example, I have a master script called run.sql with these contents:
@@a.sql
@@b.sql
exit
A.sql has these contents:
spool a.log
select ora_database_name from dual;
spool off;
B.sql has these contents:
spool b.log
select sys_context('userenv','current_schema') from dual;
spool off;
Is there a way in A.sql and B.sql to (dynamically) find out the name of the script? E.g.
A.sql:
select script_name into script from dual;
spool script.log
Where "script_name" is the actual code or variable or whatever to find out what the script is called.
Some variables such as database_name, current_schema, etc can be found dynamically (on-the-fly), but is there a way to do this with the script that's running (short of hunting from v$session and trimming the sql_text, or hard-coding the name in the spool command)?
Also, if you're in sqlplus and you "get a.sql" (into the buffer) then you can save or list, or whatever, and it implicitly knows what script you're referring to. Is this value stored in some sort of variable anywhere?
This sort of thing is easy to do in unix shell commands, but is there a way to do this in Oracle?
The only way to do that is to write better SQL. For example:
echo off
INSERT /* script name = myinserts.sql */ INTO t1 SELECT * FROM t2;
SELECT /* script executing is myscript.sql */ col1, col2, col3
FROM mytable;with labelled statements.
Then you can find the answer by looking in numerous places in the dynamic performance views such as V$SQL.
Another technique is to use calls to DBMS_APPLICATION_INFO.SET_MODULE, SET_ACTION, and SET_CLIENTINFO to poke the information into V$SESSION
http://www.morganslibrary.org/reference/dbms_applic_info.html
Similar Messages
-
Hi! I am trying to find an app that with track everything that is done on my phone with times and dates? im not really woried about call usage and texts sent I need it to view what has been done - for example:
Messages received
Messages deleted
Facebook viewed
Messages viewed
Internet viewed and what?
I just have an issue with someone using my phone - I used to track this through double clicking the home button and roughly knowing in what order I had been on things but they have sussed this one!
Thank you!!No way to do that on a non-jailbroken iPhone. Why don't you just passcode protect your phone? That way no one but you can use it...unless they know your passcode.
-
I'm trying to find a app that will download video off the web like realplayer or orbit
Does anyone know if its a App that will download video's off the web like realplayer or Orbit?
Never heard of Orbit. As far as I know RealPlayer streams but doesn't download video (and audio). So are you looking for another streaming app or one that actually downloads the video file? And what kind of video? For example, you can download flash video from sites like youtube with many flash video downloads. There are many youtube flash downloaders. Just search macupdate.com for them. FWIW, a somewhat more general flash downloader is Jaksta. Use the macupdate link I provide to Jaksta and look at near the bottom of the page for related apps.
-
Is there an app that will allow me to move and edit Excel 2003 spreadsheets to and from Windows XP home that is better than QuickOffice. QuickOffice does, but will allow the usual Apple zooming facility on my Ipod Touch ?
Peter CampbellI have Office Plus on my iPhone. I don't know if it's compatible with yours.
-
Frustrated, trying to find an itunes that will work with my OS!!!!
Does anyone know where I can get an itunes that is compatible with Tiger 10.4.2? I had itunes 7.?? working just fine and I upgraded to a point where it would not work anymore. I've tried finding older downloads, ie 6.0.5 and 7.7 but none of them worked. Does apple not expect users of 10.4.2 to ever use itunes?? Any pointer in the right direction would be much appreciated!!! Thanks in advance!
I'm running iTunes 7.7 on OS 10.3.9. You should be able to run that version on your current OS, but is there any reason that you can't update your Tiger to the most recent version of 10.4.11? With 10.4.11, you could run iTunes 8, the most recent version.
If you want version 7.7, you can download it here: http://support.apple.com/downloads/iTunes77 -
Is there a code checker that will give you the correct code?
I have a website that I started using a bought template, I deleted all of the content except the navigation buttons. The problem now is that there are ALOT of broken links and coding errors. Is there a site that will show me what the correct code should be?
www.cfaai.com
HeidiHello Heidi,
I prefer an external FTP program. The difficulties with which you have to fight encourage me in this opinion, not least because we always search for experts, we don't charge a "jack of all trades".
For this reason, to manage, for example, several websites or to upload my files and sometimes for the opposite way, for a necessary download from my server or to use a "a site-wide synch", I'm using FileZilla. It simply looks easier for me to keep track of all operations precisely and generate or reflect easily the desired tree structure.
Above all, FileZilla has a feature (translation from my German FileZilla) called "compare file list". Here it's possible to use file size or modification time as a criterion. There is also the possibility to "hide identical files", so that only these files which you want to redact remain visible.
And even if it means you have to install a new program, I am convinced that there is an advantage. Here is the link to get it and where you can read informations about how it works:
http://filezilla-project.org/ and
http://wiki.filezilla-project.org/Tutorial#Using_the_site_manager
Mac: Mac OS X
http://filezilla-project.org/download.php
Of course, you also need all the access data to reach your server.
Good luck
Hans-Günter -
1. Firefox Help
2. Search
Refine your search
Found 0 results for I have a lot of firefox downloads BUT can't find anything to click to see them - Where is the button that will show all Firefox downloads? in English in EnglishTools > Downloads or {Ctrl + J} will open the Downloads window
-
Trying to find a camcorder that records in 60 frames per second and will upload onto ipad2 through camera connector
Old forum discussion, message now gone, but here's the summary
Matt with Grass Valley Canopus in their tech support department stated that the model 110 will suffice for most hobbyist. If a person has a lot of tapes that were played often the tape stretches and the magnetic coding diminishes. If your goal is to encode tapes in good shape buy the 110, if you will be encoding old tapes of poor quality buy the model 300
Both the 110 and 300 are two way devices so you may output back to tape... if you don't need that, look at the model 55
http://www.grassvalley.com/products/advc55 One Way Only to Computer
http://www.grassvalley.com/products/advc110 for good tapes, or
http://www.grassvalley.com/products/advc300 better with OLD tapes
Or
ADS Pyro http://www.adstechnologies.com -
Where -on iTunes - can I find a control that will enable me to synch the Iphone.
The auto synch on attaching is turned offThere is no merge feature for itunes content, never was. Merge applies only to contacts and calendar entries.
The itunes content sync is one way - computer to iphone. The exception is itunes purchases
You can transfer the purchases from the iphone to itunes before you sync. File>Transfer Purchases -
Trying to find ALL objects that point to one column...
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Solaris: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
I have multiple schemas, all which have tons of objects that point to one column of one table.
I tried to look at v$sqltext, and v$sqlarea, but it doesn't seem to show as expected.
Is there a view that I can look at that will show me all the objects that relate to one column?
my situation. Had to change the data structure of this one column. Changed the default value from a Y to an L. I have packages, functions, triggers...etc... that deal with this one column. I need to ensure that I go through EACH one and edit them to reflect the change to the table column. And again, this spans multiple schemas that point back to it.
I can't overlook any objects. Is there any one place to find this?
Thanks.Use view - DBA_DEPENDENCIES
select * from dba_dependencies
where type= 'TABLE'
and name = '<TABLE_NAME>';Another crude way...
select * from all_source
where lower(text) like lower('%<TABLE_COLUMN_NAME>%')
group by owner,name,type;But, this 'll not search in Views & MView queries.
HTH
Ranit B.
Edited by: ranit B on Oct 15, 2012 11:09 PM
-- added -
How Do i create a list that will show in a dropdown box with the list being pulled from another tab and not the cell data format junk?
I currently run OS X 10.10.1
Now i have been trying to work on this for a while now and what i want to do should be simple but its apparently not.
Here is an example of what i want to happen.
I will have 2 tabs: Contact | Sales
Now Contacts will have the list of names and various information about a customer, While Sales will have one drop-down box for each Cell Row that will show the names of the person in tab contacts
for what i am wanting to do i cant use the data format pop-up menu because the list is edited everyday several times a day.
Now how do i do this, Excel can do this so how can numbers do it?Hi Shegra,
Paste this into a applescript editor window and run it from there. In the script you may need to adjust the four properties to agree with your spreadsheet. Let me know if you have any questions.
quinn
Script starts:
-- This script converts column A in one table into an alphabetized list of popups. It copies the last cell in that column. Then reverts the column to text. It then refreshes popups in column A of a data table starting with a user defined row.
property DataEntrySheet : "Sheet 1" --name of sheet with popups to be refreshed
property DataEntryTable : "Sales" --name of table with popups to be refreshed
set copyRange to {}
property PopValueSheet : "Sheet 1" --name of sheet with popup values table
property PopValueTable : "Contacts" --name of table with popup values
set PopStartRow to {}
tell application "Numbers"
set d to front document
set ps to d's sheet PopValueSheet
set pt to ps's table PopValueTable
set s to d's sheet DataEntrySheet
set t to s's table DataEntryTable
set tf to t's filtered --this records filter setting on data Entry Table
display dialog "Start from row #..." default answer "" with icon 1 -- with icon file "Path:to:my.icon.icns" --a Week # row
set PopStartRow to {text returned of result}
tell pt --convert list to alphabetized popups
set ptRows to count rows
set copyRange to ("A2:" & name of cell ptRows of column "A")
set selection range to range copyRange
set selection range's format to text
sort by column 1 direction ascending
set selection range's format to pop up menu
-- popupsmade
set selection range to cell ptRows of column 1 of pt
set v to value of cell ptRows of pt
end tell
activate application "Numbers"
tell application "System Events" to keystroke "c" using command down
tell pt
set selection range to range copyRange
set selection range's format to text
end tell
tell t
set filtered to false
set tRows to count rows
set pasteRange to ((name of cell PopStartRow of column "A") & ":" & (name of cell tRows of column "A"))
set selection range to range pasteRange
tell application "System Events" to keystroke "v" using command down
set filtered to tf
end tell
end tell -
Is there and App for the iPad that will show mu GPS position on a world map, even if I'm at sea?
Thanks,
TomacBobTheFisherman wrote:
GPS will show your position anywhere if your device has unobstructed view of the GPS satellites. The issue is that you must find a maps/charts that include all areas of the sea.
There is no mobile data connection required to use GPS on land or sea. Once again your issue is the availability of downloadable maps/charts for the areas you will be traveling.
Sorry, but you can't install an app like NAVIGON on an iPad without 3G cellular data connection:
copied from NAVIGON app:
...can be installed on any iPhone3GS, iPhone4, iPhone4S, iPhone5 or iPad device (the navigation function is only available on the iPad WiFi+3G)
Can I navigate with my mobile phone?
Answer:In principle yes. For mobile phones there are both Onboardnavigation solutions and Offboardnavigation solutions.
The following requirements must be fulfilled:
• The software must support the mobile phone. NAVIGON software
always comes with a compatibility list. The software is guaranteed
to work only for the mobile phones on this list.
• The mobile phone must have a GPS receiver. Many new mobile
phones come with a built-in GPS receiver. Otherwise you can use
an external GPS receiver which is connected to the mobile phone
by cable or Bluetooth.
• It should be noted that an offboard solution incurs costs for using
the mobile phone network to communicate with the provider's server.
Message was edited by: Ingo2711 -
Is there a system table or V$ view that will show a user's last logon date?
Is there a system table or V$ view that will show a user's last logon date?
I'm using Oracle 9.2.0.7sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Tue Aug 31 12:44:42 2010
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter user-name: / as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> desc user$
Name Null? Type
USER# NOT NULL NUMBER
NAME NOT NULL VARCHAR2(30)
TYPE# NOT NULL NUMBER
PASSWORD VARCHAR2(30)
DATATS# NOT NULL NUMBER
TEMPTS# NOT NULL NUMBER
CTIME NOT NULL DATE
PTIME DATE
EXPTIME DATE
LTIME DATE
RESOURCE$ NOT NULL NUMBER
AUDIT$ VARCHAR2(38)
DEFROLE NOT NULL NUMBER
DEFGRP# NUMBER
DEFGRP_SEQ# NUMBER
ASTATUS NOT NULL NUMBER
LCOUNT NOT NULL NUMBER
DEFSCHCLASS VARCHAR2(30)
EXT_USERNAME VARCHAR2(4000)
SPARE1 NUMBER
SPARE2 NUMBER
SPARE3 NUMBER
SPARE4 VARCHAR2(1000)
SPARE5 VARCHAR2(1000)
SPARE6 DATE -
I am trying to design a VI that will identify the position and number of all overshoot and undershoot values. I have been trying for the past three weeks to solve this problem but I am having difficulty with the output arrays which will store the overshoot/undershoot values. I am using a for loop but when I connect the array indicator the wire from the o/p tunnel to the array indicator shows an errror? Any help would be greatly appreciated
Regards,
KadeelHi Kadeel,
what error do you get? What happens when you right-click the loop output and select Create->Indicator?
Why not attach your vi, that you have been working on for 3 weeks?
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Is there an app that will show your GPS history?
Are there any Mac apps that will show your iPhone's GPS history? I've tried iPhone Tracker but it crashes when loading.
Use an app that tracks your GPS movement and pull the data points accordingly.
That app would be...?
Maybe you are looking for
-
Deleting zeros in Quantity field in Sap Script
Hi, I have a Quantity(FKIMG) field in Invoice (Sap Script), It is showing as 1.000 ,I want to show this as 1 ,By removing all zeros and point. how can i do this in Script? Thanks in advance, fractal
-
How did you feel about your first mac?
As an early christmas present I received a 13 inch macbook air, 2GB RAM and 1.86GHz dual core cpu. I am mostly used to PC laptops running linux or often I put solaris on them. I study Computer Science and have Asperger's Syndrome. I got my mac as win
-
This has probably been asked before but I can not see any posts relevant, I purchased a BlackBerry 8320 off eBay and I am trying to see up email, when I put the Pin & IMEI in it says already registered, I have spoken to the old owner to get him to re
-
Problem in em in Oracle 10g (10.2.0.3.0)
Hello all, I m facing the following problem in oracle 10g (10.2.0.3.0). When I log on to em, database instance is shown inactive(status down). However, checking the local services I realised that instance is up and running. How could i correct that p
-
Specific layout: Collection Renderer Property for Sorting
Hi, I am trying to create a new layout that display items sorting them by name (in alphabetical order). The problem is that I don't know what is the name of that property and if it exists !! In Collection Renderer, Property for Sorting, I have tried