How to get the log file for the .sql file?
Friends,OS: RHEL AS 3
DB: 9iR2
I have a file as sql...
@/u02/scripts/olback.sql
exit;
the olback.sql is to have the user manage backup scripts.I saved the code above as weeklybkp.sql
I have weeklybkp.sh that I call the sql above.
When I type the olback.sql in the sqlplus manually... I can able to see the result.
now after the automation... I have to see the output of the script above in a log file.
How can I save the output of the script above in a log file?
Thank you
Slight change in your .sql file.
coil /u02/weeklybkp.log
............ (Here begins your code)
............
............ (Here ends your code)
spool off
Tags: Database
Similar Questions
-
How to get the SQL if I get exception
I get this exception and do not know what was the actual sql with the variables of liaison who was executed.
sqlmesg = error in the select query to retrieve the segment associated with a pair of cables: ORA-01006: there is no bind variable
y at - it a way to get the real sql executed so I know what mistake I did.I thought your question was about how to view the SQL statement and bind variables in the exception. The answer to that is to put variables in the exception message.
The root cause of the problem seems to be that your dynamic SQL statement may require 3 or4 variable bind but your USING clause specifies always 4 values if the underlying SQL statement has 3 positions, it will lead to an error.
Justin
-
How to get the sql query result?
Hello
Currently I use LV2012 to connect to an Oracle database server. After the Oracle Express and Oracle ODBC driver facilities/settings made.
I managed to use the SQL command to query the data through my command prompt window.
Now the problem is, how to do the same task in Labview using database connectivity tools?
I have build a VI to query as being attached, but I have no idea of what range to use to get the result of the query.
Please help me ~ ~
Here is a piece of code that I use to test the SQL commands, you can use the part that retrieves the results of sql.
It is also possible to get the rear column headers, but it's for the next lesson!
;-)
-
How to get the SQL query running of af: search?
I use JDeveloper 11.1.2.3.0. I have a page where I've set up an af:query and an array of result. The problem is that I can't get the exact query that is used during the execution of this component in a managed bean method. Is it possible to get the query string that is run within the af: query?
Thank you
Hello
Method of the ViewObject getQuery() returns what you need;
You can replace the executeQueryForCollection(), and prior to calling super, you can print the result of getQuery() method:
public void executeQueryForCollection (rowset Object,
Object [] params,
{int noUserParams)
System.out.println ("SQL =" + getQuery());
call the super method here...
}
-
Hello
I already set date value as below.
SET THE VALUE OF START_TIME = 2011-08-12 09:00
and executes the table based on the defined date as below,
DEFINE END_TIME = 2011-08-12 10:00
Select * from my_table
) but now I want to query the table based on the time,
where
(to_date (Accounting_Start_Time,'yyyy-mm-dd HH24:MI:SS) > = to_date ('& start_time ',' yyyy-mm-dd HH24:MI:SS) and to_date (Accounting_Stop_Time,'yyyy-mm-dd HH24:MI:SS) < = to_date ('& end_time ',' yyyy-mm-dd HH24:MI:SS))
GOLD to_date (Accounting_Start_Time,'yyyy-mm-dd HH24:MI:SS) > = to_date ('& start_time ',' yyyy-mm-dd HH24:MI:SS) and to_date (Accounting_Stop_Time,'yyyy-mm-dd HH24:MI:SS) > = to_date ('& end_time ',' yyyy-mm-dd HH24:MI:SS) and to_date (Accounting_Start_Time,'yyyy-mm-dd HH24:MI:SS) < = to_date ('& end_time ',' yyyy-mm-dd HH24:MI:SS)
GOLD to_date (Accounting_Start_Time,'yyyy-mm-dd HH24:MI:SS) < = to_date ('& start_time ',' yyyy-mm-dd HH24:MI:SS) and to_date (Accounting_Stop_Time,'yyyy-mm-dd HH24:MI:SS) < = to_date ('& end_time ',' yyyy-mm-dd HH24:MI:SS) and to_date (Accounting_Stop_Time,'yyyy-mm-dd HH24:MI:SS) > = to_date ('& start_time ',' yyyy-mm-dd HH24:MI:SS)
GOLD to_date (Accounting_Start_Time,'yyyy-mm-dd HH24:MI:SS) < = to_date ('& start_time ',' yyyy-mm-dd HH24:MI:SS) and to_date (Accounting_Stop_Time,'yyyy-mm-dd HH24:MI:SS) > = to_date ('& end_time ',' yyyy-mm-dd HH24:MI:SS));
Any help please,.Hello
It is not very hard in SQL * more.
First of all, put your query in a script file, like this one, called hour_query.sql:
-- hour_query.sql Show data from my_table for a given time period PROMPT The data below shows the period from &1 to &2 PROMPT SELECT * FROM my_table WHERE accounting_start_time <= '&2' AND '&1' <= accounting_stop_time ;
Parameters & 1 and & 2 are beginning and end of time, for example "2011-08-12 09:00".
Note that this does not use TO_DATE. If you have incorrect strings in columns that must be DATEs, no errors occur.Assuming that hour_query.sql is located on p:\some_dir\, you want another script that runs hour_query.sql 24 times, like this one, which I will call all_hours.sql:
@p:\some_dir\hour_query "2011-08-12 09:00:00" "2011-08-12 10:00:00" @p:\some_dir\hour_query "2011-08-12 10:00:00" "2011-08-12 11:00:00" @p:\some_dir\hour_query "2011-08-12 11:00:00" "2011-08-12 12:00:00" ...
(I just did 3 hours to test. You can easily make that 24 hours).
The following code creates and then runs all_hours.sql:
-- Turn off SQL*Plus features that interfere with raw output SET FEEDBACK OFF SET PAGESIZE 0 SET VERIFY OFF -- Write all_hours.sql SPOOL p:\&some_dir\all_hours.sql WITH got_start_time AS ( SELECT TO_DATE ( '2011-08-12 09:00:00' , 'YYYY-MM-DD HH24:MI:SS' ) AS start_time FROM dual ) SELECT '@p:\some_dir\hour_query "' || TO_CHAR ( start_time + ((LEVEL - 1) / 24) , 'YYYY-MM-DD HH24:MI:SS' ) || '" "' || TO_CHAR ( start_time + ( LEVEL / 24) , 'YYYY-MM-DD HH24:MI:SS' ) || '"' FROM got_start_time CONNECT BY LEVEL <= 3 -- You can make this 24, or any other number ; SPOOL OFF -- Turn on SQL*Plus features turned off earlier SET FEEDBACK ON SET PAGESIZE 50 -- Except VERIFY. leave that OFF while all_hours runs --SET VERIFY OFF -- Run all_hours.sql @p:\some_dir\all_hours.sql SET VERIFY ON
-
How to get the create view sql statement
I have a technical problem
There is a view in the database, for example "topstudentsview" and sql statement is ' select * student where scores > 90;
My question is how to get the sql statement of the view. I want to get the sql statement in the topstudentsview
Is the equivalent in MS Sql
sp_helptext 'topstudentsview '.
How in Oracle?
Thank youuser10182401 wrote:
My question is how to get the sql statement of the view.Simple answer: use a tool. Almost every development tool will give you an option for this requirement.
In Oracle SQL Developer (free), it's as simple as:
Connect to the database with the user and click on "views".
Select the appropriate view, and then click the SQL tab. -
How to get the JOINT-2 log file
Hi, we installed in the 6500 system JOINT-2 cat. Anyone know how to get the syslog JOINT-2 file? and how config to send the log to syslog server? I know that these two questions are quite simple, but I've yet to find answers.
Any help would be greatly appreciated.
You can get the JOINT events to the CETS format. Using the Manager of IPS or other tool to collect these logs.
-
I use lv 8.5 and teststand 4.0.
I did a step type custom and recorded at the MyTypes.ini in pallets of type.
I specified a default module by opening the properties of the custom step of *.ini type window, then I put some values of the parameters.
T1) when I open teststand and I add the custom step type manaully in seq file, the labview module parameter values are represented.
But, if to use file (create and add support prototype stage), the labview module parameter values has the default value.
Using joint file, how to get the setting custom step type values I put in *.ini?
Q2) each type of step are automatically by name through the use of LoadTypePaletteFilesEx. When I open teststand and I add the custom step type manaully in seq file, the module is loaded automatically. Inside the attachment, I use a prototype of charge and a fixed path where the module labview is to load the labview module.
Can I load module automatically without using a prototype of charge or how can I get a dynamic path of type step?
I solved Q1 for myself by using the mapping tab of the parameter within the configuration to the default module window.
Everyone knows Q2?
Thank you.
-
How to get the new update for the help and support
OT:how to get the new update of the abd support help
How to get help and support update
Hello rickstemberger,
Please click the number of the KB article for more information on how to add Windows Vista Help files.
KB Article ID: 917607 -I can not open Help files that require the Windows Help program (WinHlp32.exe)Microsoft stopped including the 32-bit help files viewer in versions of Windows starting with Windows Vista and Windows Server 2008.
However, with article 917607, you can download the appropriate version of the Windows Help program (WinHlp32.exe) and add them
the operating system.Sincerely,
Marilyn
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think -
original title: admin password.
I forgot my password for my admin user account, but I have a secondary account how to get the password for the admin
Hello
Microsoft technical support engineers cannot help you recover the passwords of the files and Microsoft who are lost or forgotten product features. For more information about this policy, please refer to the sticky below.http://social.answers.Microsoft.com/forums/en-us/vistasecurity/thread/3eba3150-8742-4264-be9f-0daaad2282cd Lisa
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
Hi, I want to let my friend use my laptop and I need to set up a guest account. The problem is that when I did it, we cannot access Office so that the person cannot create any word or excel files, etc. All they can do is go on the Internet Explore. So my question is how to get features of office for a guest user?
Don't add a guest account, add another standard user if you want another user to access programs as well.
-
I don't know if this is the right place to post this question, I develop software to support VMWare PCoIP and need to know how to get the host name of the physical machine (which manages the virtual machine and View Client) within a virtual machine before the user logs in Windows of the virtual machine.
I understand there are two ways to read the host name, via the HKEY_CURRENT_USER\Volatile Environment registry and environment variables, but they are available once the user is connected. I need info before the user connects.
Is there a VMware API that can be called or asked the host name?
Thank you.
Not on the broker, but there are the startup scripts to log on to the computer virtual itself: http://pubs.vmware.com/view-52/topic/com.vmware.view.integration.doc/view_integration_startsession_script.9.2.html
Note that these executed when a virtual desktop computer allocated connection, not to the point that the client connects - it is possible for the customer to not complete the connection (crash, cancel, network failure) and so any what solution you design must handle this.
Mike
-
How to get the full path of the image open in a filter plugin file?
Hello
How to get the full path of the current file, including the directory, the file name with the extension. I need information to download the file on a webserver for a plugin. I found an example that can get the name of the document (title property) but without extension and directory. How can they?
James
There is no way to get the full path of the active document in a plug-in filter. A plugin automation has access to this information and the file format plug-ins.
-
How to get the path or the file name of getChild
Hey everyone, good day!
Is - anyone here know how to get the path or the file name of an object inserted into the scene?
Here's the scenario:
I am developing a flash application, which allows the user to insert background to the scene to help her browse and select using the FileReference in flash. I inserted some image the user successfully choose, but what I'm trying to make, is that if the user clicks on save, the background image it has chosen will be copied to a different folder on the web (file upload). So I need to know the path and the file name of the background image.
Here is my AS3 code:
for (var i: uint = 0; i < container.numChildren; i ++) {}
trace ('\t|\t' + i +'. \t name:' + container.getChildAt (i) .name + "\t type:" + typeof (container.getChildAt (i)) + "\t" + container.getChildAt (i));
}------------------------------------------------------------------------------------------ -----
Here is the message trace of the code above:
| 0 name: instance120 type: object [object Loader]
------------------------------------------------------------------------------------------ --------
Any help here? I thank in advance.
The Loader class has a property contentLoaderInfo (an instance of the class LoaderInfo) that contains information, that you are probably after, including the url of the content that has been loaded...
Loader.contentLoaderInfo.url
-
How to get the name of the current PDF file?
Hello world
I know this is maybe a question has been asked millions of times, but I couldn't find a straight answer.
I am using a workflow that comes with a Content Manager Solution is not Adobe this WF will generate a file very long (about 30 characters) name that will be used as the number of unique processes.
To go to the step next in the workflow that I have to update the table in the database and registration update will use the process number. What I did is that I added a field in hidden text in the form, which should have the number of processes on the initialize function.
Now my question is how to get the file name of the opened PDF file?
I'm sure that there is a function in JS, but I couldn't find the way to do it.
Thanks in advance guys for help.
Mazen
Acrobat can create LiveCycle Design possible forms, but each uses a different and different languages or syntax approach.
There are a number of ways to get the file name and path, urt getFileName.
-
How to get back my data for the health and the watch Apps once I've restored my phone?
How to get back my data for the health and the watch Apps once I've restored my phone?
From the backup, you're going to be restoration.
If you back up to iTunes, make sure that it is an encrypted backup.
Maybe you are looking for
-
Whenever I close Firefox, I have to open the Task Manager and kill the process manually. I uninstalled the flash plug-in and the problem is solved, except that now I can't use YouTube etc. etc. Without the Flash plugin browser normally works with it,
-
How can I create a 2D table which is updated and displayed on the front panel after each iteration. It is 2D because I have a voltage that corresponds to a load. I want to see the current voltage corresponding to the intensity of the current, and al
-
Downloaded CC desktop application all that shows is a blank screen?
I have 10 windows and I downloaded the desktop creative cloud app and everything that appears when you open that an empty window is?
-
HelloI get the following error message when you use the Page convert to PDF module in Internet Explorer: "not able to access installation of Acrobat Capture Web. Acrobat may be busy or waiting for input. ».I use Acrobat X (with latest updates) on Win
-
What is in a Select query?
I'm trying to understand the use of the symbol @ and xxxxx in the query as follows...Select Col1, Col2, Col3 FROM school. MyTable@xxxxx