DateFormat on XSU command line
Hello,
can anybody indicate how the usage of the parameter dateFormat on the XSU command line is intended to be used (maybe a small example ?) ?
Thanks in advance
Christoph Wahrenberger
You can refer to the Java Date Format documents:
http://java.sun.com/j2se/1.3/docs/api/java/text/SimpleDateFormat.html
Similar Messages
-
Generating XML Using the XSU Command Line : connection error
I've been trying run the sample provided by the XSU doc to extract data from a table and present it in XML format. By I've been getting this connection error.
My DB version : Oracle9i Enterprise Edition Release 9.2.0.1.0
C:\>java OracleXML getXML -user "scott/tiger" "select * from emp"
Exception in thread "main" java.lang.UnsatisfiedLinkError: make_c_state
at oracle.jdbc.oci8.OCIDBAccess.make_c_state(Native Method)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:397)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:177)
at OracleXML.getConnection(OracleXML.java:1214)
at OracleXML.To_XML(OracleXML.java:1014)
at OracleXML.ExecuteGetXML(OracleXML.java:917)Hi,
Check the solution for this problem from
Re: Oracle Driver classes12.zip oci8 Error
You cna even check the link for more information
http://technet.oracle.com//tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm
Regards,
Anupama -
How to set SAXParser at command-line interface to create a large XML file
Hi,
I am trying to create a large XML file (more than 50 MB) by selecting from Oracle database but failed because of "out of memory" error. According to "Oracle XML Developer Guide", we should use SAXParser to parsing a large XML file. But there is no example to show how to set SAXParser at command-line
Following is what I use to get xml files. It works only when the file is small.
java OracleXML getXML -DateFormat -withDTD -rowsetTag PO_HDR -conn
"jdbc:oracle:oci8:@server_name" -user "ID/password" "select * from table_name"
When I set SAXParser at the way below,
java oracle.xml.parser.v2.SAXParser OracleXML getXML -DateFormat -withDTD -rowsetTag PO_HDR -conn
"jdbc:oracle:oci8:@server_name" -user "ID/password" "select * from table_name"
it failed with the error message: "In class oracle.xml.parser.v2.SAXParser: void main(String argv[]) is not defined"
Does anyone know how to solve the problem? I'll be appreciated very much for your help.
Yihere are my ideas.
register the xml schema.
using xmldom, generate the desired xml output and return as xmltype.
then you can use something like this to check.
declare
xmldoc xmltype ;
begin
-- populate xmldoc from you xmldom function
-- validate against XML schema
xmldoc.isSchemaValid(schema_url, root_element);
if xmldoc.isSchemaValid = 1 then
--valid schema
else
--invalid
end if;
end -
-info XML format for Compressor's command line interface?
Hi Everyone,
I've got a brand new copy of Final Cut Studio HD that I'm using for an encoding project. I'm trying to figure out how to use Compressor's command line interface. I want to give it a MPEG-2 file and a .scc (closed caption) file. I can see how to specify the source file, but I'm having trouble figuring out how to specify the SCC file. As best as I can understand, I'm going to need to use the -info <XML> option, but I haven't found any documentation for this. Can someone point me to the appropriate documentation?
Thanks!
- KevinI get an error when I do exactly what you suggested. My problem is not if the XSU is able to locate the xml file because I know it is able to parse it since it picks up an error in it such as if I make the "ROW" element "row" - ie small caps instead of big which is not recognised by XSU. I use the url of the xml file as specified when I open the xml file in internet explorer. The XSU does confirm it inserts the document successfully with my original command but the document simply doesn't get inserted into the table. Specifically, if anyone is to insert the xml file I have shown in Oracle, how would it be approached successfully?
Your help is very much appreciated. -
I'm trying to dump a large (+4MB) set of xml query results to a file from a sql string.
In the environment I'm using, I can't use any Java.
I tried writing pl/sql & sqlplus from the command line, but the size of the results overflowed the limits of the sqlplus buffers.
Any ideas?
thanksYou can use the SAX APIs provided by XSU.
-
Open and Close a command line exec via OpenG.lib in seperate VIs
Hi,
I'm aiming to perform tests on my UUT - over a command line based executable which established a USB connection, so - sendings commands and checking the return string.
So far i'm reusing the pipeNight.vi which is shared in the following post.
http://forums.ni.com/t5/LabVIEW/How-to-pass-input-to-a-DOS-executable-that-is-running-in/m-p/1763182...
However i wish expand from LabVIEW and utilise NI-TestStand sequence files to ramp up the test coverage and perform the tests automatically.
The issue i've encountered - every time i call the pipeNight.vi from a TestStand sequence Step, the USB connection is build up and torn down.
Although i'm not encountering any performance issues to date, i would ultimately like to open a session (i.e.establish the usb connection) - at the beginning of a sequence file, send a bunch or commands and check return strings, before closing the session at the end of the sequence file. This is surely a more effecient and elegant solution.
Is it somehow possible to split the pipeNight.vi into several VIs to realise this objective?
- Open
- Write/Read
- Close
i'd appreciate and help or alternatice solutions on this!
B.Regards
Kech
Solved!
Go to Solution.I had tried to explain in my initial post, that if i call the pipeNight.vi from a TestStand sequence file step, then establishes a USB connection and tears it done - for every command that i send/ respectively every sequence step that i run in TestStand. As i envisage multiple (several hundred) test steps, i woul like to improve effeciency by establishing the ESB connection once instead of multiple times.
-
How to send report output to two detinations at a time from command line?
Hi ,
how to send my report to two detinations at a time from command line i.e FILE and Mail ?
i created batchfile in that i mentioned one line for file(DESTYPE=FILE) perpose and another line for mail perpose(DESTYPE=Mail).i don't want to mention to lines.
i want to send my report out put two destinations at a time insted of running two times.
thx in advance.....
raghuhello,
did you try to use distribution for that ? check out the reports distribution facilities available in 6i.
regards,
the oracle reports team -
Error while running a Discoverer Workbook with parameter from command line
I am trying to run a discoverer report from command line and export the results in xls on to my local machine. I could do it fine for a simple workbook, but if I add a parameter(madatory) to the workbook and run it from command line specifying the parameter value I wanted to run the report for, I do not get any results. Here is the command line I am using.
dis51usr.exe /connect user/password@database /apps_user /apps_responsibility "System Administrator" /eul EUL_US /open C:\Disco\Test.DIS /sheet Testsheet /parameter Period Jan-07 /export xls C:\Disco\X.xls /batch
Parameter value is entered in correct format(Jan-07).
When I removed /batch from this to see if I get any error, Discoverer Desktop opened up, logged in and gets terminated saying 'Oracle Discoverer Desktop has encountered a problem and need to close. We are sorry for the inconvenience.'
Did anybody come across this issue before?Hello,
If you have a few minutes, Windows is also aborting for me:
the differences are, my situation is:
a) am running the command line from a .bat file
b) am NOT running with parms, want the discoverer query to come up for the user
c) am running a query from the database
i am signing in as myself BUT running a query that was created by a generic user called SREG
c) if i run the .bat file from Windows Explorer, the query opens fine
d) if i execute the .bat file from within Microsoft Access using the shell command,
the query opens and then aborts RIGHT BEFORE the parm screen would display
e) btw, if i modify the .bat file, to run a query from MY database signon, then (d) - running .bat file
from vb using SHELL command works
Do you have a ideas as to why (d) does not work? I would be very grateful for your time, tx, sandra
this is what i posted yesterday, tx: Re: Running Discoverer command line
tx, sandra -
Could not view data in the Em while in the command line query works
Hi, all,
I have met with this problem for several times.
I have an Oracle 10.0.2.0 running on Redhat linux E3.
After I insert or just input some data in a table. I could see the new data in the command line.
SQL> select * from tablename;
But I could not see the new data in the EM. If I export the table to, say, MS Access, the new data doesn't show. The data is there, but I have to wait for some time. (several mins to hours)
Do you have any idea of it??
Thank you very much!
QianThank you for your reply.
Why sometimes it doesn't show in other sessions, but sometimes it shows?
Any way, I will perform commit to see....
Qian
Message was edited by:
QianChen -
GUI Applications unable to use command line tools
Hi All-
I've searched, but I can't find a thread about this one, so...
On OS 10.4.5:
Whenever I use a GUI app that wants to use a command line tool (e.g. curl, df, java), the app fails giving an error message to the effect of "unable to find curl" or the like. It is as if the GUI cannot find my unix $PATH.
Examples:
-- Eclipse refuses to launch, because it appears to use "java xxxxxxx" to launch.
-- Automator fails to run certain Safari actions because they use curl to navigate web pages.
-- Carbon Copy Cloner fails to launch, because it can't find a tool (df, IIRC) to read drive/volume info
Possibly relevant details:
-- I can use the tool in question from the command line, so they are present, and in my $PATH, but the GUI can't find them.
-- I recently moved from an old G4 to a relatively new G5, and had issues migrating files, so I eventually just copied my entire home directory from the old machine to the new, replacing the freshly created one on the new machine. I feel like that missed something that tells the GUI where your $PATH is, or some other link between GUI and command line.
-- I created a new user, and that user does not experience the same troubles. This adds to my suspicion that it is account/PATH related.
Any help anyone can give it greatly appreciated.
-p
PM G5 dual 2.0 Mac OS X (10.4.5)Did you by any chance create an evironment.plist file? It is located in ~/.MacOSX/ If you don't know about it or don't know to look (.MacOSX is normally invisible), try this:
In Finder.app, in the "Go" menu select "Go to Folder..." (shift-command-G), type ~/MacOSX in the text field and hit OK, the finder should then open a window or complain.
If it opens a window and you find in it a file named environment.plist move that file to the desktop and try your applications. Do they work as advertized? Try again after logging in/out if things don't work. Do they work now?
Whatever hapens, tell us more... -
Error Received When Trying To Create DSN From The Command Line
All,
Your help is greatly appreciated in advance. I am having trouble packaging Oracle 10G for a batch file deployment. Everything is done except for getting the DSN created which is causing me major problems. We am working with the Oracle 10G R2 10.2.0.1.0 Client on Windows XP Professional SP2. The Oracle database resides on a Windows 2000 Professional Server SP4 running Oracle 9i.
Our Environment: I am creating two packages of the Oracle 10G client. The first is for a batch file distribution via LANDesk and the other package is for normal batch file install if someone from IT is installing this from a user's desk. Both scripts are really identical the only differences are how they are laid out. I only need help with the DSN creation as everything else is ready to go. I am going to focus on the Non-LANDesk batch file as once I fix this in one script the other one should also be fixed.
The Problem: The batch script copies the neccesary files to the temporary directory. I then extract the setup files to the temp folder. I run a custom Oracle install using the RSP file from a recorded install. After the install is complete I copy the TNS Names file to the proper location. I then try to call a CMD file with the ODBC command seen below the main script.
Script (May be easier to read if you download using link below):
@ECHO ON
::This batch files installs Oracle 10G Release 2 Version 10.2.0.1.0 with a Custom Response File
::Installation is Interactive
::All files are extracted from the ZIP file via the 7-Zip command line tool
::The Net Configuration Assistant TNS Names File is copied to its proper location
::The CCR ODBC connection is created once the install is complete
::All folders used for installation are cleaned up-deleted
@ECHO Setting Variables
set NetworkPath=\\dc-landesk\SoftwareForLDAgent\Oracle10G-R2-10.2.0.1.0\Non-LD
set DefaultPackagePath=C:\Program Files\LANDesk\LDClient\sdmcache\SoftwareForLDAgent\Oracle10G-R2-10.2.0.1.0\Non-LD
set ExtractionPath=C:\Temp_Oracle10G
set TempInstallFromPath=C:\Temp_Oracle10G\SetupFiles
set FileFolderCleanupPath=C:\Program Files\LANDesk\LDClient\sdmcache\SoftwareForLDAgent
@ECHO Creating Directories
mkdir "C:\Program Files\LANDesk\LDClient\sdmcache\SoftwareForLDAgent\Oracle10G-R2-10.2.0.1.0\Non-LD"
@ECHO Copying Files to DefaultPackagePath
copy /Y "%NetworkPath%\7za.exe" "%DefaultPackagePath%"
copy /Y "%NetworkPath%\CCR-ODBC.cmd" "%DefaultPackagePath%"
copy /Y "%NetworkPath%\Oracle10GCustom.rsp" "%DefaultPackagePath%"
copy /Y "%NetworkPath%\SetupFiles.zip" "%DefaultPackagePath%"
copy /Y "%NetworkPath%\tnsnames.ora" "%DefaultPackagePath%"
@ECHO Changing to Extraction Directory
cd "%DefaultPackagePath%"
@ECHO Extracting Files to path with no spaces
"%DefaultPackagePath%\7za.exe" x SetupFiles.zip -o%ExtractionPath% -aoa
@ECHO Please Open the "Task Manager" manager, Sort by "CPU" Descending
@ECHO Watch Task Manager For Javaw.exe, press any key when the process Disappears
@ECHO Install using Custom Response File
"%TempInstallFromPath%\setup.exe" -responseFile "%DefaultPackagePath%\Oracle10GCustom.rsp" -force -silent -noconsole
pause
@ECHO Copying NETCA (Net Configuration Assistant) TNS Names File to proper Location in Oracle Product Directory
copy /Y "%DefaultPackagePath%\tnsnames.ora" "C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora"
@ECHO Creating ODBC Connections Using Oracle Driver installed by this Batch File
call "%DefaultPackagePath%\CCR-ODBC.cmd"
@ECHO Waiting 20 seconds before proceeding
ping -n 21 127.0.0.1 >NUL
@ECHO Remove Temp Files and Folders created during Install
rmdir /S /Q %ExtractionPath%
del /Q "%DefaultPackagePath%\*.exe"
del /Q "%DefaultPackagePath%\*.ora"
del /Q "%DefaultPackagePath%\*.rsp"
del /Q "%DefaultPackagePath%\*.reg"
del /Q "%DefaultPackagePath%\*.zip"
rmdir /S /Q %FileFolderCleanupPath%
@ECHO The Oracle 10G installation has been Completed
pause
ODBC Script
odbcconf.exe /a {CONFIGSYSDSN "Oracle in OraClient10g_home1" "DSN=CCR|Description=CCR_data|SERVER=BWB|Database=CCR"}
As soon as the command is called I see the following error message appear.
"CONFIGSYSDSN: Unable to create a data source for the 'Oracle in OraClient10g_home1' driver: Could not load the setup or translator library with error code -2147467259"
The really strange thing though is that if I let the main part of the script run (Not the ODBC call) and then immediately manually start the ODBC call script it works just fine. So, I don't really understand why the script can't add it itself. Or, I can go the Administrator Tools>Data Sources (ODBC)>and then add it manually which also works. I have tried just pasting the command directly in the main script, therefore, bypassing the call feature but it doesn't make a difference.
Link (Zip with all scripts mentioned above): http://www.cbridegum.com/Fourms/Oracle/Files.zip
Has anyone ever seen this kind of issue before? Does anyone have any idea on how to fix this? Any thoughts or suggestions would be great.
Thanks so much for your help in advance,
Clif BridegumAll,
I thought it may be related to spaces in the path in which the script was called from. I tried having the ODBC command script in another directory but the same thing happens. It will give me the "CONFIGSYSDSN: Unable to create a data source for the 'Oracle in OraClient10g_home1' driver: Could not load the setup or translator library with error code -2147467259". As soon as the script is done running I can manually double click the script and it adds the DSN fine.
Thanks,
Clif Bridegum -
Single Sign On and Command line
Hi!
We have application without any logon form which executed from command line by BAT file:
app.exe Username Password par1 par2 ...
where par1, par2... is parameters of application
So question is: can Oracle Single Sign On set user credentials to the command line? Can we use OSSO for application without logon form?
Thank you.SSO is for web apps, you could try to use OID to perform the autentification of your application but you should change your application so it looks for the users in LDAP.
Greetings. -
Can't run JavaFX app as a jar file from command line
I'm trying to build a JavaFX app from scratch (that is, by including the jar file from the JavaFX SDK rather than by using the special JavaFX project type from NetBeans). It runs fine in NetBeans. However, when I try to launch it as a jar file from the command line (using "java -jar dist\TestApp") I get the following. Has anybody seen this before, and if so how can I fix it?:
*** Fallback to Prism SW pipeline
Exception in thread "main" java.lang.RuntimeException: java.lang.UnsatisfiedLink
Error: Can't load library: C:\dev\TestApp\dist\bin\mat.dll
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:
289)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:68)
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherIm
pl.java:145)
at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:
27)
at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:97)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: Can't load library: C:\dev\RedactionT
oolPrototype\RedactionToolPrototype.Core\dist\bin\mat.dll
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoad
er.java:155)
at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoad
er.java:85)
at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:
30)
at com.sun.glass.ui.Application$1.run(Application.java:28)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.glass.ui.Application.loadNativeLibrary(Application.java:26)
at com.sun.glass.ui.win.WinApplication.<clinit>(WinApplication.java:33)
at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatform
Factory.java:20)
at com.sun.glass.ui.win.WinPlatformFactory.createApplication(WinPlatform
Factory.java:17)
at com.sun.glass.ui.Application.Run(Application.java:51)
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:
279)
... 5 moreUnsatisfied link means that Java is trying to access a native library, but it cannot be found. As to why this error is being thrown, here is my guess:
If you open up one of the sample jars with a zip viewer, you will see that the Manifest file has the following entries:
>
Manifest-Version: 1.0
JavaFX-Version: 2.0
implementation-vendor: Oracle
implementation-title: BrickBreaker
implementation-version: 1.0
JavaFX-Application-Class: brickbreaker.Main
Created-By: JavaFX Packager
Main-Class: com/javafx/main/Main
>
In other words, a JavaFX project works a bit differently than a normal Java project. com/javafx/main/Main is used as the Main class and your "Main" class is called later.
If you are trying to build this from a normal Java project, then com/javafx/main/Main will not be created and it will call your Main class right away. Thus, whatever setup is needed to run JavaFX will not occur. -
Classpaths inside of Jar's effect on command line cp
If I have a jar with Class-Path set in the manifest, will Java ignore the classpath I use at the command line:
java -cp conf/log4j.properties;lib/a.jar com.some.target.Main
If "a.jar" has the class path in the manifest, will the cp I try to pass in get ignored? It seems the case.When you execute a command like
java SomeJar.jarthe only place that Java looks for a classpath is in the jar. -
Cisco Jabber MSI Install Command lines/ Orca MST file
Greetings....
We are trying to deploy cisco jabber 9.7.4 either by using msi command line or configuring a custom installer using Orca. Both options have worked partially. 2 places we are getting stuck. The EULA is prompting to accept (which if we run in quiet mode, it stalls and fails) and after the install I am prompted to select account type and server. The server is populated with the correct address but it defaults to the "use default server". It seems to work with the default server but I still need to select "Cisco IM and Presence" from the account type.
I followed the deployment guide for jabber to create the installer file.
I am pretty new to CUCM and CUP. So feel free to answer me like I am a 4th grader.
Attached are screen shots of the msi command line and the settings in Orca I was playing around with.
Any help and guidance is appreciated.In your doc you have:
msiexec /i CiscoJabberSetup.msi TPYPE=CUP ADDRESS=10.21.0.10 DOMAIN=chi-sd.com
TYPE=CUP is mispelled.
Regards
Aaron
Maybe you are looking for
-
Transaktion variant not working
Hi experts, I am facing a problem with a transaction variant. I am creating a transaction variant in transaction SHD0. But can't get it to work when I afterwards is calling the transaction BBPSC02? Step By Step: 1. Go into transaction SHD0. 2. In the
-
GL Group Account customizations - alpha-num range in "natural" segment
OBIEE 11g BIA 7.9.6.3 EBS 12.1.3 Trying to configure custom GL Group Accounts per the BIA documentation and not all of our custom groups are being populated in w_gl_group_account_d. Basically none of the out of the box group numbers are meaningful to
-
How Come windows 7 can't boot off the second hard drive on MBP?
i have 2 ssd in my macbook pro. but the second drive (located in the superdrive slot) will not allow windows to boot while the first HDD is in. When i remove the first HDD, the 2nd hdd boots. this doesnt make and sense as the second bay is still a s
-
How can I override an alert for a particular event?
I'm using Calendar 6.0 in Mountain Lion. I have set default alert times, but sometimes I want to set a different alert for a particular event. This is something that is easy to do in other calendar programs but seems impossible in Calendar. If I edit
-
Why dose an InDesign document loose the link to it's folder everytime the software upgrades?
Why dose an InDesign document loose the link to it's folder everytime the software upgrades?