Oracle DSN files in UNIX
Hi Guys,
i need to change server name in a DSN , orcale is installed in a UNIX server but i am nto sure where the DSN files reside in UNIX, can anyone help me in finding that file.
Ok
For Solaris
# vi /etc/resolv.conf
for HP-UX
The Berkley Internet Name Domain (BIND) is the most common implementation of DNS for UNIX based systems and HP ships BIND with all of its HP-UX versions.
/etc/resolv.conf
/etc/nsswitch.conf
/etc/named.conf
Similar Messages
-
How to write a file in unix server through oracle plsql code
Hi All,
My requirement is to create and write a file (any file for eg txt file) in unix box with in a specified directory through oracle plsql code.
Oracle sits in windows server.
using utl_file package we can create directory where oracle resides and write it there in oracle server in our case windows..
But here we need to create,write a file but in unix server which is different server than where the oracle server resides..
we are using Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
Can any one one please help me out in this issue...
Thanks in Advance.
PrakashMr Prakash,
Why are you asking this question multiple times in every forum you can spell?
Valid responses have been presented to you already two times.
Can you explain why you can't follow them up, but continue to abuse this forum by repeating doc questions?
Sybrand Bakker
Senior Oracle DBA -
How to create pdf files in UNIX directory from oracle reports
I would like to know how to create pdf files in UNIX directory from oracle reports.
Thanks,Please make your question more clear . Also mention the reports version.
1) If you are runnning reports in Unix, you can give
.... destype=file desformat=pdf desname=<filename>
in command line
Please refer docs below.
2) If by your question you mean
"My reports server is running in Windows but I want to ftp my files to Unix after creating it"
then the answer is that you can use pluggable destination "ftp"
.... destype=ftp desformat=pdf desname=<ftp url>
Pluggable destinations download
http://otn.oracle.com/products/reports/pluginxchange/index.html
Thanks
Ratheesh
[ All Docs ]
http://otn.oracle.com/documentation/reports.html
[ Publishing reports to web - 10G ]
http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
[ Building reports - 10G ]
http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
[ Forms Reports Integration whitepaper 9i ]
http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf -
Can you use command lines to copy files in UNIX to Oracle Apps
Hi! We have installed the oracle apps 11.5.0 to a unix operating system. And we use ftps to upload the rtf and xml files to the unix server. Is there any command lines we can use to copy all the rft and xml files in the server to the real location of where the report files stored without going through the XML Publisher font end through the internet explorer? Thanks for your help!
Hi,
From what you have mentioned, I believe you are writing custom xml pub report
1) Storing all your template and sample xml data file on Unix box by FTPing it. This step is not required as XML publisher picks template from XDO tables (where it is stored in CLOB), unless you are explicitly Coding to use templates from a fixed location like <CUST_TOP>/<xml_templates>
2) As part of XML setup, you need to define the template and datasource using the front end. This causes the Template and XML data (sample) to be stored in XDO tables (as clobs). This step is basically required and unavaoidable.This step can be automated using FNDLOAD tool (not sure).
Hope it helps somewhat.
Neeraj -
Need to create file in unix (oracle directory path)
Is it possible to create a file in oracle directory path (in unix folder).
I am using a dynamic procedure to create the External Tables, when the given pattern file is present the procedure will create the External table, if the file is not present then it should create an empty file so that the corresponding External table would return zero(0) records. It should not fail.
It has to be through plsql not using unix script.
UTL_FILE.FGETATTR(V_DIR_NAME, V_FILE_NAME, V_EXISTS, V_FILE_LENGTH, V_BLOCKSIZE);
IF v_exists=FALSE THEN
--------create an empty file
v_file_name:=empty_file;
end if;
--Create table script which will dynamically create the external table
v_sql := 'CREATE TABLE '||V_RX_NAME||' ( '||RTRIM(v_cols,', ')||' )' ||
' ORGANIZATION EXTERNAL '||
' ( TYPE ORACLE_LOADER '||
' DEFAULT DIRECTORY "'|| v_dir_name || '"'||
' ACCESS PARAMETERS '||
' ( RECORDS DELIMITED BY NEWLINE '||
' LOAD WHEN ( '||RTRIM(v_null_cols,'and ')||')'||
' BADFILE '''||rec_mkt_name.SUBJECT_AREA_NAME||'_'||rec_mkt_name.PARAM_NAME||'.BAD''' ||
' DISCARDFILE '''||rec_mkt_name.SUBJECT_AREA_NAME||'_'||rec_mkt_name.PARAM_NAME||'.DISCARD''' ||
' LOGFILE '''||rec_mkt_name.SUBJECT_AREA_NAME||'_'||rec_mkt_name.PARAM_NAME||'.LOG'''||
' FIELDS TERMINATED BY ''~'' OPTIONALLY ENCLOSED BY ''"'' '||
' MISSING FIELD VALUES ARE NULL ' ||
' ) LOCATION ('''||V_FILE_NAME||''') ) REJECT LIMIT UNLIMITED';
GV_CURR_STEP := v_sql;
dbms_output.put_line(V_FILE_NAME) ;
EXECUTE IMMEDIATE v_sql;
...........Saubhik wrote:
Try to use utl_file.fopen with 'W'.Or maybe even with "A", and then close it. If you use "W" it will overwrite the file if it already exists. ;) -
How to access SQL server in oracle running in aix unix?
Hi all,
I have oracle database running in IBM AIX OS, and I need to query data in
SQL SERVER 2000.
How to do that?
Is there free Sqlserver ODBC drivers for unix?
ThanksHi,
I prefer heterogenous services over ODBC for this!
I have my notes here, which may help.
http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
1. Install Oracle ODBC drivers on the server (your local Oracle database) that will access the remote SQL Server database using the database link.
2. Setup the ODBC connection on the local Oracle database using the Windows ODBC Data Source Administrator
3. Test the ODBC drivers to ensure that connectivity is made to the SQL Server database.
4. Ensure that your global_names parameter is set to False.
5. Configure the Oracle Heterogeneous services by creating an initodbc.ora file within the Oracle database.
7. Modify the Listener.ora file.
SID_NAME is the DSN for the remote database.
ORACLE_HOME is the actual Oracle home file path.
PROGRAM tells Oracle to use heterogeneous services.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME=Cas30C) -- Enter the DSN on this line
(ORACLE_HOME = c:\oracle10gdb) -- Enter your Oracle home on this line
(PROGRAM = hsodbc) ) )
8. Modify the Tnsnames.ora file. This is the Oracle database installation accessed by the users to connect to the ODBC drivers
(DESCRIPTION=
(ADDRESS_LIST=
(Address=(PROTOCOL=TCP)
(HOST=
-- (Server x)
(PORT=1521))) -- Enter the port on which the server x Oracle installation
-- is listening
(CONNECT_DATA=(SID=Cas30c)) - Enter the DSN name
(HS=OK) -- Enter this value. It tells Oracle to use hetergeneous services
9. Reload the listener on local Oracle database
10. Create a database link on the local Oracle installation that accesses the heterogeneous connection, which, in turn, connect to SQL Server.
11. Run a SQL Server Select statement from the Oracle installation using the database link.
Hope this helps. . .
Don Burleson
Oracle Press author
Author of “Oracle Tuning: The Definitive Reference”
http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm -
How to Find the file in UNIX?
Hello Team,
I Have below list files and i have to find the file with latest date and time
CHECK_300914_200747_xxaa_account_name_20140930195924.txt
CHECK_300914_203213_xxaa_account_name_20140930203055.txt
CHECK_300914_205625_xxaa_account_name_20140930200219.txt
CHECK_300914_211345_xxaa_account_name_20140930200446.txt
CHECK_300914_213836_xxaa_account_name_20140930200718.txt
CHECK_300914_215928_xxaa_account_name_20140930201143.txt
In a list of files "CHECK_300914_215928_xxaa_account_name_20140930201143.txt" is the latest file i.e. ddmmyy:300914 and hhmmss:215928
Can you please help me to find the file in UNIX
Thanks in Advance,touch CHECK_300914_215928_xxaa_account_name_20140930201143.txt
touch CHECK_300914_211345_xxaa_account_name_20140930200446.txt
touch CHECK_300914_205625_xxaa_account_name_20140930200219.txt
touch CHECK_300914_203213_xxaa_account_name_20140930203055.txt
touch CHECK_300914_200747_xxaa_account_name_20140930195924.txt
ll
total 0
-rw-r--r-- 1 oracle oinstall 0 Oct 7 11:27 CHECK_300914_200747_xxaa_account_name_20140930195924.txt
-rw-r--r-- 1 oracle oinstall 0 Oct 7 11:27 CHECK_300914_203213_xxaa_account_name_20140930203055.txt
-rw-r--r-- 1 oracle oinstall 0 Oct 7 11:27 CHECK_300914_205625_xxaa_account_name_20140930200219.txt
-rw-r--r-- 1 oracle oinstall 0 Oct 7 11:26 CHECK_300914_211345_xxaa_account_name_20140930200446.txt
-rw-r--r-- 1 oracle oinstall 0 Oct 7 11:25 CHECK_300914_213836_xxaa_account_name_20140930200718.txt
-rw-r--r-- 1 oracle oinstall 0 Oct 7 11:25 CHECK_300914_215928_xxaa_account_name_20140930201143.txt
We are interesting in file with maximal values in "field" 2 and 3 assuming that fields are parts of filename separated with "_". I especially created (the file we are interested in) CHECK_300914_215928_xxaa_account_name_20140930201143.txt file to be the first created/modified file.
find . -name CHECK_300914_215928_xxaa_account_name_20140930201143.txt
./CHECK_300914_215928_xxaa_account_name_20140930201143.txt
will definitely work. But we should know the file name. As for topicstarter note it is not the case.
ls -tr . | tail -1
CHECK_300914_200747_xxaa_account_name_20140930195924.txt
gave incorrect file.
ls -l . | cut -d" " -f10 | sed 's/\(^CHECK_\)\([0-9]\{2\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)\(.*\)/\1\4\3\2\5/' | sort -r | head -1 | sed 's/\(^CHECK_\)\([0-9]\{2\}\)\([0-9]\{2\}\)\([0-9]\{2\}\)\(.*\)/\1\4\3\2\5/'
CHECK_300914_215928_xxaa_account_name_20140930201143.txt
P.S.
I much apologize for an error in back filename transformation. Correct is marked in bold red. -
Set the password for zip file in unix
Hi All,
I have used the below command to zip the file and it is working fine.
cd /YYYY;zip -r ZZZZ.zip ZZZZ.TXT
While using the below command to set the password on zip file , I am getting error like "zip error: Invalid command arguments (encryption not supported)
zip -P password -r ZZZZ.zip ZZZZ.TXT
Can you please help me how to set the password for zip file in UNIX.
Thanks,Do you use any characters in the password that might confuse the zip command? (like '-' or ';'?)
If I use the command in RHEL4:
cd /tmp
zip -P password -r tt.zip gconfd-oracle
adding: gconfd-oracle/ (stored 0%)
adding: gconfd-oracle/lock/ (stored 0%)
adding: gconfd-oracle/lock/ior (deflated 67%) -
Flat File in Unix to DB in Windows
HI
As part of POC I am trying to interface from a flat file in Unix server to a Oracle DB in Windows machine.
I can access the file in Unix box using telnet/FTP. The directory and the file has rw-rw-rw- permissions.
I have ODI installed in Windows machine. I do not have an agent or anything installed in Unix machine.
When the file is in Windows machine, I am able to interface data as required. But, when I try with file on unix machine, I get directory does not exist. I tried both absolute path using $HOME/<directory>.
Is it possible to achieve such integration or is it mandatory to install ODI Standalone Agent (at least) on the unix machine.
Regards,
G V RanjithAnother option without installing the Unix agent is to install the samba share on the Unix and access that from Windows.
This post will help you:
Re: File not able to see in designer -
Forms configuration file in Unix
Hi
We're using Forms 9i.
Is there any configuration file in Unix in wich I can set Forms to read .pll files instead of .plx?
TIA,
MarcosSince there's no inputs, lemme rephrase it:
There's this forms that have an attached library (PLL). One of the developers has made a few changes to this PLL, but the changes didn't make any effects because there was a previous version of this library, with PLX extension.
So, I'm wondering, if there's any way to tell Oracle Forms that you don't want to use PLX but PLL files (same for MMB vs. MMX, etc).
TIA,
Marcos -
Sqlldr: run ctl file in unix
Hi,
I'm new to Unix.
How can I execute a control file in unix.
my control file is in /home/r226124/split/ctl folder
when trying to execute the command
sqlldr USERID=username/password@host CONTROL=Split.ctl LOG=Split.log
this is the error i'm getting
ksh: sqlldr: not found
Any help?
Thanks.sqlldr is in /opt/oracle/product/client/102/bin/sqlldr
but when i run, i'm getting this error
r226124@host:/opt/oracle/product/client/102/bin> ls -ltr sql*
-rw-rw-r-- 1 admgwldv securedv 2865 2008-08-18 15:06 sqlnet.log
-rwxr-xr-x 1 oracle dba 10166 2009-01-06 17:46 sqlj
-rwxr-xr-x 1 oracle dba 0 2009-01-06 17:53 sqlldrO
-rwxr-xr-x 1 oracle dba 0 2009-01-06 17:53 sqlplusO
-rwxr-xr-x 1 oracle dba 744359 2009-01-06 17:57 sqlldr
-rwxr-xr-x 1 oracle dba 12767 2009-01-06 18:01 sqlplus
r226124@host:/opt/oracle/product/client/102/bin> sqlldr
ksh: sqlldr: not found
r226124@host:/opt/oracle/product/client/102/bin> -
How to Run a text files using UNIX
Hi,
I have 10 text files in my project my task is to load all the text files data into Relational Database so i can use sql*loader to load all the text files data into a Database.
but the thing is another project i have 200 text files so i need to run these text files using UNIX script could anyone tell me how to load all the text files using UNIX
Thank's
Edited by: Lavanya on Sep 5, 2012 3:09 PMLavanya,
This question relates to shell scripting and in IMO it is not an oracle question.
I have made some initial assumptions before my proposed solution.
PLEASE note that this is untested, but can just guide you as a template for solving your problem.
Assuming that you have properly set up the control file and mapped each and every table in it as per the file information which you have..
Assuming the text file to be in the format of : ------ (as suggested by other posters earlier, this file holds instructions about the file and table mapping which shall be used by your sqlldr process.)
tmp.txt:
text_file_1-------------should goes to----customer_info_table
text_file_2------------should goes to------customer_address_table
text_file_3-----------should goes to-------customer_order_table
while read line
do
SQLLDR CONTROL=`echo $line | sed 's/should goes to/ /g' | sed 's/-//g' | awk -F " " '{print $1}'`.ctl,
LOG=`echo $line | sed 's/should goes to/ /g' | sed 's/-//g' | awk -F " " '{print $1}'`.log,
BAD=`echo $line | sed 's/should goes to/ /g' | sed 's/-//g' | awk -F " " '{print $1}'`.bad,
DATA=`echo $line | sed 's/should goes to/ /g' | sed 's/-//g' | awk -F " " '{print $1}'`.txt
USERID=scott/tiger
done <tmp.txtAll I am trying to run from the above shell script is : -- PLEASE TEST it if it matches your requirement.
SQLLDR CONTROL=text_file_1.ctl, LOG=text_file_1.log, BAD=text_file_1.bad, DATA=text_file_1.txt USERID=scott/tiger
SQLLDR CONTROL=text_file_2.ctl, LOG=text_file_2.log, BAD=text_file_2.bad, DATA=text_file_2.txt USERID=scott/tiger
SQLLDR CONTROL=text_file_3.ctl, LOG=text_file_3.log, BAD=text_file_3.bad, DATA=text_file_3.txt USERID=scott/tigerRepeating my assumptions, I assume you have all those files required for SQLLDR process to run (ctl file, data file...)
Cheers,
Manik -
UNABLE to EXECUTE Oracle Forms f50gen on UNIX
Subject:
URGENT: Oracle FORMS Error on UNIX box...
I am trying to EXECUTE forms50 on HP UNIX box and get the following
ERRORS. Do I need to set a PATH???
Please RESPOND ASAP at
[email protected]
$ f50gen
ld.so.1: f50gen: fatal : librt.so. 1: open failed : No such file or
directory
Killed
$ oraterm25
ot: Can't connect to the window system.
$
nullActually SendMailJPkg.SendMail (JavaMail) does work when called out of Forms/Reports 10g against an 11g Database. We just tested it as an alternative because we are having the same issue with UTL_MAIL - It will run from an annonymous PL/SQL block fine, but when you try to compile the same code in Forms Builder (or Report Builder) the compiler chokes and throws the internal error [60603] error. Keep in mind that SendMail does NOT like NULL arguments, so if you are not going to use cc_recipient (i.e. NULL), just don't include it at all in your comma delimited param list. It should work fine then.
-
Is there ODBC driver for excel flat file in Unix Box
Hello guys
I have a question about importing flat file sitting on Unix box into OBIEE. Normally, if the file is somewhere in Windows, I could just use a DSN for text file where I can set the location of the flat file and then be able to import using admin tool.
However, if the file is sitting on the unix box, I wouldn't be able to define the path using that DSN driver since the location of the file doesnt belong to C: drive or E: drive like it does in Windows.
So in this case, how would i be able to proceed? What third party ODBC could I use for flat file in Unix? Also, there is a file called ODBC.INI in Unix OBIEE directory, do I have to modify the content of that file too? If so how would I do it in order to be able to import flat file from Unix using Admin tool?
Your thoughts?
ThanksYou'd need to export the Excel file to CSV or something like that, and then read it in from there.
Thanks rnm.
I am more curious about what you said above.. Could you explain a little more?
Do you mean changing the flat file into CSV format? If so, the flat would still be in Unix location after the changing right? Or am I not understanding you completely?
Thanks and please advice
Cheers -
I need help i am using oracle express objects and the file copy command. i am trying to copy a file from my harddrive of my pc on to the express server which is in unix i am using the following command but all i get is permisson denied.
FileCopy "D://test.txt","\\D_LRIC\Version_7\test.txt"
however i have managed to get this command working using a local server and my hardrive.
i have tried back and forward slashes for the unix file and even placed an empty text file in unix to populate.
i would be great full for any help.
Thanks
AlexI figured out what the problem was. I simply needed to auto-extend the tablespace for WWW_FLOWS_FILES. It seems obvious now, but the fact that APEX popped me out to a 404 - Page not found instead of the usual ORACLE error threw me off.
I put this explaination here just in case someone else has the same problem.
Maybe you are looking for
-
Returns order created w.r.t Free of charge billing
hi, We are providing free of charge delivery to customer.if at any point of time the goods are damaged in transit the goods are returned w.r.t free of charge billing. Free of charge Order type- FD Item category used - ZKLN Pricing at Item category- X
-
Windows 7 and Chrome not playing some vids
I have a brand-new PC, top spec, running W7 Home Premium (genuine copy), latest version of Google Chrome and showing FlashPlayer ver. 11.7.700.225 installed and apparently running correctly. Video and audio work perfectly in YouTube, but I cannot get
-
how to add the report for jasper ,i am using jdeveloper tool to create project but how to add the report for the that project please help me
-
FM for Vendor vs contact person
Please suggest FM for getting contact person numbers for vendors in SRM.
-
HT201209 What is iTunes download code and how do I get it to download skype for my ipad4?
What is iTunes download code and do I get it to download Skype free for my ipad4?