How will i create physical directory in oracle pl/sql using java
how will i create physical directory in oracle pl/sql using java
This is, I suspect, related to Re: how will i overcome from this error java.io.IOException. Quite why you felt the need to have two partial threads instead of one thread with a complete set of information is beyond me. Perhaps this muddled thinking is indicative....
Anyway, if I was looking to do this particular task in Java I would look to using the specific command File.mkdir() rather than trying to use a generic exec approach.
Cheers, APC
Similar Messages
-
How do you query Oracle RDF database using Java program?
Does anyone know how to get data out of the oracle RDF database using Java?
I'm running the following java code and it returns basically null values. My guess is that the get_triple() function returns a dataset other than resultset. I've tried searching the Oracle web site. Am I supposed to be using CLOB object? Any help would be appreciated. Thanks
sql = "SELECT a.triple.GET_TRIPLE() AS triple FROM family_rdf_data a";
ResultSet rs = stmt.executeQuery( sql ) ;
while ( rs.next() )
System.out.println( rs.getString(1) ) ;
rs.close() ;get_triple() returns an object, and the code would be different from the code of retrieving a string. Some sample code for retrieving objects is at http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/advanced/advanced.html
get_subject(), get_property() return strings so the code below should work. get_object() returns a CLOB so different handling would be required and there is some sample code at the link above.
Melli -
hii...
I am using CREATE DIRECTORY method.
CREATE DIRECTORY MYDIR AS 'C:\TEMP1';
it is working. But, i want to create physical directory if TEMP1 folder isn't in the C: drive.
How can i do this? do you have any idea? thanxOracle implemented the DIRECTORY model primarily for security reasons, so normal users should not be issuing CREATE DIRECTORY statements. A privileged user should create the directory and then give normal users appropriate permissions on the directory. The privileged user should know whether or not the physical directory exists.
Just in case you did not know, the O/S directory pointed to by an Oracle DIRECTORY object needs to be on the same server as the Oracle instance itself.
John -
How do I create a db in Oracle 9i Lite?
I have used Oracle 8i Lite on handheld computers in a replicated environment for quite some time now. I am in the middle of setting up a demo tablet computer, but since Oracle 8i Lite is no longer downloadable from the Oracle website, I instead downloaded 9iLite. When I went to install it, my options were Mobile Server and Mobile Development Kit. I went ahead and followed the install wizard without choosing either one of these two options, thinking I would just get the plain Oracle Lite database environment. After the install completed successfully, I went to look for Oracle Navigator and where the Polite.odb was located, but no where do these two items seem to be installed (or copied to).
Somewhere in this forum, a person posted that 9iLite needs 8iLite to be installed already in order to use the basic database functionality. Is this the case? Is there anyway to create a database using my create table script for all the tables in my db. I could see that SQL Plus is installed, which is the app I used to run the script in 8iLite.... but you already need a database to log into in order to run SQL Plus.
How do I create a database in Oracle 9iLite.
Your help is greatly appreciated.
PS: I am somewhat in a hurry, since my demo unit needs to be done by the end of the weekend..... I really did not anticipate this trouble with 9iLite.Sure but you break the license, or forgive me and a did a mistake
3.2 Oracle Database XE Installation and Execution Restrictions
On a single computer, only one installation of the Oracle Database XE software can be performed. This does not affect any existing installation or new installations of Oracle Database 10 g Standard Edition, Oracle Database 10 g Standard Edition One, or Oracle Database 10 g Enterprise Edition. In addition, users can run only one instance of the Oracle Database XE database on each individual computer. To run more than one Oracle Database server instance or install more than one copy of the database software, upgrade to Oracle Database 10 g Standard Edition, Oracle Database 10 g Standard Edition One, or Oracle Database 10 g Enterprise Edition.
http://www.oracle.com/technetwork/products/express-edition/downloads/toc-090217.html#BABIECJA
regards
Peter -
How do i create a directory in powershell
How do i create a directory in power shell
Hi JRC,
have youi got some experenance using powershell? please read the documentation md is an alias for the new-item command. whereas mkdir is implemented as a function (powershell v2) so you are able to use the new-item command in order to create a new folder.
because both command md and mkdir calls new-item.
If you don´t specifiy a parametername then it´s up to the cmdlet definition as what parameter this value is interpreted.
get-help new-item lists all available cmlet executables.
regards Thomas Paetzold visit my blog on: http://sus42.wordpress.com
'Folder" is NOT an argument for the ItemType. ItemType only takes "file" and "Directory"
Hi,
use this command
new-item -Name <foldername> -ItemType folder
regards Thomas Paetzold visit my blog on: http://sus42.wordpress.com
This is what we get:
17:47 PS>new-item -Name e:\tests\testfolder -ItemType folder
New-Item : The type is not a known type for the file system. Only "file" and "directory" can be specified.
At line:1 char:9
+ new-item <<<< -Name e:\tests\testfolder -ItemType folder
+ CategoryInfo : InvalidArgument: (:) [New-Item], PSArgumentException
+ FullyQualifiedErrorId : Argument,Microsoft.PowerShell.Commands.NewItemCommand
¯\_(ツ)_/¯ -
How could I create a "Linked Server" link from SQL Server 2008R2 64-Bit to Oracle Database 11.2 64-Bit?
Let's say the SQL Server and Oracle Database are in the same Company Internet Network.
I have the code, but I do not know how to use it. Such as what is System DSN Name? Where could I get it. What does it look like?
Do I need to install any Oracle Client Software in order to link from SQL Server to Oracle? Or SQL Server has the built-in drivers installed already that I can directly create a Linked Server from SQL Server to Oracle?
I need to know details. Thanks.
USE master
go
EXEC sp_addlinkedserver
@server = '{Linked Server Name}'
,@srvproduct = '{System DSN Name}'
,@provider = 'MSDASQL'
,@datasrc = '{System DSN Name}'
EXEC sp_addlinkedsrvlogin
@rmtsrvname = '{Linked Server Name}'
,@useself = 'False'
,@locallogin = NULL
,@rmtuser = '{Oracle User Name}'
,@rmtpassword = '{Oracle User Password}'You need an OLE DB provider for Oracle. There is one that ships with Windows, but it only supports very old versions of Oracle. Oracle has an OLE DB provider that you can use. I don't know if it's part of Oracle Client or how it is bundled.
You should not use MSDASQL or any DSN.
Erland Sommarskog, SQL Server MVP, [email protected] -
How to create database link between oracle and SQL Server
Hello Everyone,
Here i have Oracle Database 9i and SQL Server 2005 databases.
I have some tables in sql server db and i want to access from Oracle.
How to create a database link between these two servers
Thanks,Thanks for Everyone,
I was struggle with this almost 10 days....
I created Database link from Oracle to SQL Server
Now it is fine.........
Here i am giving my servers configuration and proceedure how i created the db link...@
Using Generic Connectivity (HSODBC) we can create db link between Oracle and SQL server.
Machine (1)
DB Version : Oracle 9.2.0.7.0
Operating System : HP-UX Itanuim 64 11.23
IP : 192.168.0.31
Host : abcdbt
Machine (2)
Version : SQL Server 2005
Operating System : Windows server 2003 x86
IP : 192.168.0.175
Host : SQLDEV1
User/PW : sa/abc@123! (Connect to database)
Database : SQLTEST (exsisting)
Table : T (“ T “ is the table existing in SQLTEST database with 10 rows)
Prerequisites in Machine (2):
a) Oracle 10g software
b) User account to access SQL Server database (sa/abc@123!)
c) Existing SQL Server Database (SQLTEST)
d) Tables (testing purpose) (T)
Steps:
1) Install Oracle 10.2.0.1 (Only SW,No need of database) *(Machine 2)*
2) Create a DSN where your windows Oracle 10g SW resides *(Machine 2)*
Control panel >> Administrative Tools >> Data Source (ODBC) >> System DSN ADD
You can follow this link also.....
http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
I created DSN as
DSN name : SQLTEST
User : SA/abc@123! (Existing user account)
Host : 192.168.0.175 (machine 2)
Already I have 1 database in SQL Server with the name SQLTEST
You can create DSN with different name also (not same as db name also)
3) Create a hsodbc init file in $ORACLE_HOME\hs\admin *(Machine 2)*
Create init<DSN NAME> file
Ex: initSQLTEST
Copy inithsodbc to initSQLTEST
And edit
initSQLTEST file
HS_FDS_CONNECT_INFO = SQLTEST <DSN NAME>*
HS_FDS_TRACE_LEVEL = OFF*
save the file....@
4) Configure Listener.ora *(Machine 2)*
LISTENER_NEW =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
SID_LIST_LISTENER_NEW =
(SID_LIST =
(SID_DESC =
(SID_NAME = SQLTEST) *+< Here SQLTEST is DSN NAME >+*
(ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
(PROGRAM = hsodbc))
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = G:\oracle 10g\oracle\product\10.2.0\db_1)
(PROGRAM = extproc) )
:> lsnrctl start LISTENER_NEW
5) Configure tnsname.ora *(Machine 2)*
SQLTEST11 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.175)(PORT = 1525))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SQLTEST))
(HS=OK)
:> tnsping SQLTEST11
If No errors then conti….
6) Configure a file *(Machine 1)*
Cd $TNS_ADMIN ($ORACLE_HOME/network/admin)
Create a file
$ vi TEST_abcdbt_ifile.ora
something=
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST =192.168.0.175) (PORT=1525))
(CONNECT_DATA=
(SID=SQLTEST))
(HS=OK)
$ tnsping something
$ sqlplus system/manager
Your connected to Oracle database *(machine 1)*
create database link xyz connect to “sa” identified by “abc@123!” using ‘SOMETHING’;
select * from t@xyz;10 rows selected.
Thanks,
Edited by: ram5424 on Feb 10, 2010 7:24 PM -
How to create database link from oracle to sql server
Please help with how to create database link from oracle to sql server
Best regards,
VishalPlease help with how to create database link from oracle to sql server
Best regards,
Vishal
Hi Vishal,
I found a lof of information regarding how to create a database link from Oracle to SQL Server, please see:
https://www.google.co.in/?gws_rd=cr&ei=vd3XUvGFO8TgkAXqlYCADg#q=how+to+create+database+link+from+oracle+to+sql+server
We discuss SQL Server related issue in this forum. If you have any more question regarding Oracle, please post it in Oracle communities forum for better support.
Regards,
Elvis Long
TechNet Community Support -
How to upload data into form of Oracle EBS R12 using ATS ver 9.0
Hi experts,
Could you please guide me how to upload data into form on Oracle EBS R12 using Oracle Application Testing Suite verson 9.(The simpliest way)
For example: I need to create user account on Oracle EBS. Normally, I use Dataloader to upload the data, however it just can upload one by one record, cannot upload multi record at same time. Moreover if the performance of server is low, so I will get the issue when using dataloader.
Thanks in advance
Best Regards
HieuHi you can create Virtual users to enter data. Note than you have to name the objects accordingly.
For Example default recording provided by Open script is ObjectNAME_(Index No of the object).
when you record one iteration the name of any object would be ObjectNAME_(0)
You can then create virtual users so the index will increment as the total number of Virtual users increases. Also you have to handle which row of your test data would get mapped to which Virtual user in the script run session.
Thanks -
Creating a directory on a remote machine using a UNC path
Hi all,
Is it possible to create a directory on a remote machine using a UNC path such as \\Server\Share\Directory?
If so, how would i go about this? (Sorry for the newbie question, that's exactly what I am!)
Thanks,
RobThe tables on your pages are images. Not very convenient if the visitor wants to copy the information and use it.
Read this how to use tables :
http://www.wyodor.net/blog/archives/2010/01/entry_297.html
http://www.wyodor.net/blog/archives/2010/01/entry_298.html
Samples :
http://www.wyodor.net/mfi/Maaskant/Seabreeze.html
http://www.wyodor.net/mfi/Maaskant/Experiment.html
http://www.wyodor.net/mfi/roodhout/Prices.html
And here's a non-iWeb page with a sortable table :
http://www.wyodor.net/htmlegg/TallCard/TallAjax.html?pg=tablesorter
Or use a database on the server with MySQL and make tables with PHP :
http://www.google.com/search?q=create+html+table+with+data+from+mysql+database
Here's a very simple way to do it :
http://home.wyodor.net/w3school -
How do i create a styled spry mysql driven menu using dreamweaver cs4?
How do i create a styled spry mysql driven menu using dreamweaver cs4?
I have cs4. I gave up on using MS sql as a datasource. I finally got a php successfull connection in my PHP web page.
I would like a nice video tutorial for creating a dynamic menu.
I guess i can style it by attaching a css file to the page. Are their any already designed css files out there in some online area?
i am not a good designer. so i would like to simply have a collection of menu_style.css files and choose what looks good.
But first i need to build the spry menu from the mysql database.
Any help is apprechiated.
My first choice was to maintain the data in an MS sql server file. If i could directly attach to an ms sql datasource then that would be the best option.
I dont think i want to have to re-generate an XML datasource each time i add or modify the menu. I would like to maintain the MS Sql or mySql file instead.
If i could generate an XML datasource from the MS Sql database then I may even prefere that, but i have spent a lot of time trying to figure out how to do that and not had any success. So i prefere working in MS sql but would settle for mySql if i had to.
Thanks
JerryTo create a dynamic menu take a look here http://labs.adobe.com/technologies/spry/samples/menubar/MenuFromNestedData.html#
The XML file for the above menu looks like this
<?xml version="1.0" encoding="utf-8"?>
<items>
<item id="0001" type="donut">
<name>Cake</name>
<ppu>0.55</ppu>
<batters>
<batter id="1001">Regular</batter>
<batter id="1002">Chocolate</batter>
<batter id="1003">Blueberry</batter>
<batter id="1003">Devil's Food</batter>
</batters>
<topping id="5001">None</topping>
<topping id="5002">Glazed</topping>
<topping id="5005">Sugar</topping>
<topping id="5007">Powdered Sugar</topping>
<topping id="5006">Chocolate with Sprinkles</topping>
<topping id="5003">Chocolate</topping>
<topping id="5004">Maple</topping>
</item>
<item id="0002" type="donut">
<name>Raised</name>
<ppu>0.55</ppu>
<batters>
<batter id="1001">Regular</batter>
</batters>
<topping id="5001">None</topping>
<topping id="5002">Glazed</topping>
<topping id="5005">Sugar</topping>
<topping id="5003">Chocolate</topping>
<topping id="5004">Maple</topping>
</item>
<item id="0003" type="donut">
<name>Buttermilk</name>
<ppu>0.55</ppu>
<batters>
<batter id="1001">Regular</batter>
<batter id="1002">Chocolate</batter>
</batters>
</item>
<item id="0004" type="bar">
<name>Bar</name>
<ppu>0.75</ppu>
<batters>
<batter id="1001">Regular</batter>
</batters>
<topping id="5003">Chocolate</topping>
<topping id="5004">Maple</topping>
<fillings>
<filling id="7001">
<name>None</name>
<addcost>0</addcost>
</filling>
<filling id="7002">
<name>Custard</name>
<addcost>0.25</addcost>
</filling>
<filling id="7003">
<name>Whipped Cream</name>
<addcost>0.25</addcost>
</filling>
</fillings>
</item>
<item id="0005" type="twist">
<name>Twist</name>
<ppu>0.65</ppu>
<batters>
<batter id="1001">Regular</batter>
</batters>
<topping id="5002">Glazed</topping>
<topping id="5005">Sugar</topping>
</item>
<item id="0006" type="filled">
<name>Filled</name>
<ppu>0.75</ppu>
<batters>
<batter id="1001">Regular</batter>
</batters>
<topping id="5002">Glazed</topping>
<topping id="5007">Powdered Sugar</topping>
<topping id="5003">Chocolate</topping>
<topping id="5004">Maple</topping>
<fillings>
<filling id="7002">
<name>Custard</name>
<addcost>0</addcost>
</filling>
<filling id="7003">
<name>Whipped Cream</name>
<addcost>0</addcost>
</filling>
<filling id="7004">
<name>Strawberry Jelly</name>
<addcost>0</addcost>
</filling>
<filling id="7005">
<name>Rasberry Jelly</name>
<addcost>0</addcost>
</filling>
</fillings>
</item>
</items>
Then remains the manner in which you create the XML file which can be found here http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html
One you have your menu up and running, you will be able to apply styles and effects -
How do i create a new table from a *.sql file in JSP
<html>
<%@ page language="java" import="java.sql.*" %>
<%@ page errorPage="ExceptionHandler.jsp" %>
<%
Class.forName("com.mysql.jdbc.Driver").newInstance();
String dbUrl = "jdbc:mysql://localhost/test?user=root";
Connection conn = DriverManager.getConnection(dbUrl);
Statement stmt = conn.createStatement();
stmt.executeUpdate("\\. addresses.sql");
%>
how would i create a table from the addresses.sql file?stmt.executeUpdate("\\. addresses.sql");This, of course, will not work.
You might even execute it the same way you do from command line with some Runtime.exec() jugglery but I would suggest you to work with my first suggestion unless someone else came up with something better. -
How do I create an 'upload facility" for my website using Muse.
How do I create an 'upload facility" for my website using Muse. We are a print company and is how we receive most of our work.
IainHey Iggy,
These might help:
Muse
http://tv.adobe.com/watch/introducing-business-catalyst/getting-started-with-business-cata lyst-and-muse-what-is-business-catalyst
http://tv.adobe.com/watch/introducing-business-catalyst/getting-started-with-business-cata lyst-and-muse-creating-and-publishing-sites
-Dave -
HT201342 How do I create a new iCloud account to be used as an email address only
How do I create a new iCloud account to be used as an email address only?
Howdy shark byte,
This first article details how to set up an additional iCloud account as just an e-mail account on your iOS device.
iOS: Setting up an email account
http://support.apple.com/kb/HT4810
Cheers,
Allen -
How to accessed,created and modified date of particular file in java
Hi,
I am facing one problem.
I know how to get the modified date/time of file in java.
but i don't know how to find created and accessed date/time of file in java.
Thanks,
TejasI guess thats not possible in in Windows.
But if u r trying it on a unix machine.
You can use Runtime class to call exec on the command
ls -l filename
and then store the result in a file . And then take out the last modified time. But you cant get created time.
Thats a clumpsy way i believe.
Maybe you are looking for
-
Run two displays with current Mac mini?
Can two displays be run with the current mac mini? I would like to be able to have itunes open on one display while using the second for all other use. Thank you.
-
Want to upload company logo into ICON table
hi i want to upload my company logo into ICON table how i can upload it . thanks in advanced.
-
Why can't I watch YouTube allow a sudden
It started yesterday suddenly is my iPad and iPod not able to watch YouTube videos. I can go into the sight and everything but it says that every kip try to opened is not available. Same thing goes for my iPod. But it works perfectly fine on my Samsu
-
Claims Digger report - values for changes in duration/float/lags
When I compare two projects using Claims Digger, I always get results for changes in durations, float and lags in hours as opposed to days? Is there a setting that can fix this? Please advise. Thanks!
-
LSMW no create MRP flaps in Material Master
Hello, I created a LSMW for Material Master. The material is created but the tabs are displayed MRP or Accounting. You do not know what else to try. Help please. Arturito.