Option append with spool command create tow different file.
I have this situation:
DEFINE USERNAME=PIPPO
DEFINE VERSIONE=02.02.02
spool &USERNAME_file_&VERSIONE.log
---do some stuff
spool off
spool &USERNAME_file_&VERSIONE.log append
-- do some stuff
spool off
Oracle doesn't append things in the forst log. byt create two log:
pippo_file_02.02.02.log
pippo_file_02.02.02log.lst
I also try with:
spool &USERNAME_file_&VERSIONE..log append
Why
Hi!
Have you tried to use double quotes around your filename?
spool "&USERNAME_file_&VERSIONE.log" append
Oracle recommends using double qoutes around filenames.
Hope this helps!
Similar Messages
-
I have pdf file with 500 pages created from AutoCad file. In all pages, I have different document numbers.The file is not editable in pdf. How to change all the document numbers using "Comment" feature? Any alternate method? alternate method? I have Adobe Acrobat X Pro and Windows -7 platform.
Yes, I just want to cover up all the pages for those particular area of document numbers.
Nothing sensitive about it. I just want to show the correct document numbers on all pages in print out.
So, I wanted to cover up by comments, but commenting on each page will be difficult. So, I wanted to comment the same on all pages. -
To create 5 different files in target for each record in the sender file
Hi SapAll,
i have got a a requirement where pi need to create 5 different files with data of each record from the sender side.
Its an file to file scenario
suppose there are 5 rows in a file , then in target side i need to create 5 diff with each one record in it.
Can we do it without using 3 comm channels
Thanks®ards,
SaiHey,
As a more generic solution, can you try using MultiMapping. It is supposed to generate multiple instances of messages on receiver side.
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
You just need to put a simple logic in Message Mapping to generate new Node for every occurence of source field.
Thanks
Aamir -
Having a hard time with permissions to create dir and files in www
Having a hard time getting permissions to create directories and files in www folder:
I followed the following guide here: https://www.digitalocean.com/community/ … arch-linux and here: https://www.digitalocean.com/community/ … arch-linux
So now I have a LEMP stack which runs fine and I have my root account secured and a new username "adriano". If I SFTP into the server using the username adriano, I am unable to create any files or directories. Trying to do a simple wordpress install doesn't work because I need to be able to create a folder for it, and a wp-config.php file. Both of which, like I mentioned, I do not have permissions to do. Yes, the username "adriano" has been added to the sudoers file via visudo.
I've never been very good at UNIX permissions so I was wondering if maybe someone can help me out?
Also, since I am using nginx it does not seem like I have a www-data group or user and my www folder is /usr/share/nginx/
Thank you,
AJNo, no, you guys misunderstand me. I am not that much of an oblivious person. 95% of the time I understand EXACTLY what the code that I am copying and pasting does. And when I don't, I look into it further before executing said commands. I just tend to not remember commands so I google them, see examples, and then copy and paste them to avoid the busy work of typing out long strings. For example, it took me like 6 months to remember that to untar a .tar.gz file it was -xvfz.
But I digress. drcouzelis, I do have root access. It's my own VPS. However, I have always used shared hosting through different hosting providers and now that I got a VPS and have to do everything myself, I am a little bit lost.
I followed what wonderwoofy said and created a www-data group, added the adriano user to said group, and changed the owner of my http server root to www-data, and I SFTPed into the server again with filezilla and it still works perfectly. However, those "hordes of hackers" drcouzelis warned me about does not sound pleasant so I am really really really hoping one of you guys can tell me the next steps. Root login is disabled in the /etc/ssh/sshd_config file, and I also changed the port to a random port I created. My web files are all served from /usr/share/nginx/ (there are different folders in there that correspond to different domains.) Now what I am wondering is that if user "adriano" is in the sudoers file as ALL=(ALL) ALL, doesn't that pretty make adriano the same as the root user? The reason why I am so worried about this is because I heard/read countless times that working through the root user is BADDDDDDDDDD and will bring evil and shame upon your life (not in those exact words) and that you should never work with it. Also, do I have to worry about anything dealing with groups and/or users and/or permissions when it comes to PHP? I have php-fpm installed.
I am willing to buy anyone who can help me out with this a beer or two and I will be forever in your debt.
Thank you,
AJ
Last edited by AJCR (2013-05-23 02:52:03) -
Publishing with AC2 to create 1 flash file
I am working with a CMS that can work well with flash files
individually. They tend to be rendered just fine (therefore I get
to bypass the html export). Upon trying Adobe Captivate 2, the
publish feature creates 2 flash files (and others, but later on
that) - one for the skin, one for the content. Is there some way to
get AC2 to publish the skin and content into one file? Or am I
going to have to do that in Flash 8?Larry
I am new to this forum and have found helpful information for
problems I have had, posted from you and others. Thank you and the
others for your volunteer help. Volunteer service is not always
rewarded. I do want to say for myself and others, you are
appreciated.
Though, I have noticed a trend in several of the threads.
Especially when information is provided to new users.
You asked
"What more could I have done to be nice (enough) for your
highly cultivated sensibilities?"
You could have simply left out the following in your reply:
"I've been around for years, and am having to "guess" at what
your intent is, so you can imagine how many folks might have even
less clue than I, and they might also know the answer, if they
could understand the question."
I sense a need for you to bring up that you have knowledge of
the product and volunteer your help at every turn. Simply providing
the answers to the problems will send the same message.
You obviously understood the two acronyms used. andKlinger
even spelled out Adobe Captivate 2 in the sentence preceding the
one in which he used "AC2." I would think on a forum where CMS,
LMS, SCORM, SWF, HTML, JS, and many others are used, we could
simply put an assumption statement in the response.
Your choice of paraphrasing one of the most arrogant
characters in movies is informative.
"Intelligence trumps muscle, Imagination Trumps Both!"
Arrogance shuts the door to communication.
Let's make new users feel welcome by toning down the
commentary and just try to help.
It is ironic that after many of dressing downs you follow it
up with "Welcome to the community." -
11g SOA with AIA suddenly creates huge temp files(sar files)!!
Hi All,
One of our clients that is on 11g SOA with AIA, the team observed while deploying applications, that it suddenly creates huge temp files(sar files) and the server slows down and then shuts down, has anyone seen such behavior or possible reasons?
If anyone could share such prior experience would be apreciated!
Thanks for your time!
Regards,Hi Ajay,
Could you check the managed server logs on the server you are deploying to? I prefer the soa_server1.out file if its available. Hopefully there is something more telling on that side.
My gut feeling is that there is a schema required by the ProcessFulfillmentOrderBillingBRMCommsAddSubProcess process has not been deployed (which sometimes happens with this PIP in particular). -
HELP!EXPORTING FROM KEYNOTE TO QUICKTIME AND IT CREATES TWO DIFFERENT FILES
I made a presentation in keynote, adding music from my itunes library and need to send it to a client (who owns a PC) ASAP.
When I export my keynote file to QT, it creates two separate files on my computer. One is the project and one is the "soundtrack.mov"
1. Why does it create two separate files?
2. How can I send the ENTIRE presentation in one?
3. How can I send it to a PC user?
4. Why did it tell me on my last music selection that I added to keynote (After I exported) that I would have to open it in itunes???
Totally NEED HELP ASAP!
Thank you
MLYeah, me too. Bump. Can anybody explain this behavior?!?
-
How can be delete file which is created with spool command on Oracle Server
Dear Experts,
we have ccreated a file in oracle with DBMS_SQL Package now i want to remove this file from Server with oracle commend or Scheduler .
Please help us.user8725480 wrote:
Host Script i am not aware about that. Could you please tell me about the same.Using the DBMS_SCHEDULER package you can launch an external executable. Using this you can launch a host script in a language of your choice (BASH, VBS, etc) to perform the actions you require. -
ODI file append with unix command problem
Hi everyone,
I will apennd multiple files to a main file in a directory.I wrote jython code like this:
import os
sourceDirectory = "/home/oracle1/Desktop/test"
inFileNames = "#FILE_NAMES"
inFileNamesList = inFileNames.split(" ")
inFileIDS = *"'a','1','2','3'"*
inFileIDSList = inFileIDS.split(",")
i = 0
for item in inFileNamesList:
command ="awk 'BEGIN {OFS=\"" + "#FILE_DELIMITER\"" + "} {print $0,\"[|]\"" + *inFileIDSList* + ",\"[|]\"NR}' " + sourceDirectory + os.sep + item + " >> " + sourceDirectory + os.sep + "#SESS_CURR_TS"
os.system(command)
i = i + 1
Now my problem is here :
Yu can seee my inFileIDS values.Ana I have splitted comma and then first I will write file then *inFileIDSList[i]* and at the and NR
But character a is not written.Number values is appended but character values is not appended.
Why it can be so ?
someone has an idea about this problem
Coluld anyone help me to solve this problem?
Regardsimport os
sourceDirectory = "#SOURCE_DIRECTORY"
inFileNames = "#FILE_NAMES"
inFileNamesList = inFileNames.split(" ")
inFileIDS = "#FILE_IDS"
inFileIDSList = inFileIDS.split(",")
i = 0
for item in inFileNamesList:
command ="awk 'BEGIN {OFS=\"" + "#FILE_DELIMITER\"" + "} {print $0,\"\"*FILENAME*}' " + sourceDirectory + os.sep + item + " >> " + sourceDirectory + os.sep + "#SESS_CURR_TS"
os.system(command)
i = i + 1
My original code is above.Now I am printing file datas and I want to print file name that are being ready.
First print$0(all line) and field_delimiter(;) and then I will print filename which file is processed.My output file will be like this:
all line;FILENAME
But I write FILENAME into awk command it returns with path .So for example likie this:/d102/odi/uca/arrival/data/T02344903302310.txt .But I want to print only file name without paths.
I want to print T02344903302310.txt so my output file will be like this:
all_line;T02344903302310.txt and there are many files like this.
Could anyone has an idea? -
How to use the bootp_enabled key with dscl command create
During Netboot service configuration I wanted to do it right and followed the suggestions in "System Imaging and Software Update Administration" (page 22):
+"To prevent the NetBoot BootP server from responding to+
+requests for IP addresses, use the dscl command-line tool to open the local folder on the NetBoot server and add a key named bootp_enabled with no value to the /config/dhcp/ folder."+
so I first tried to read the local directory:
xadmin$ *sudo dscl . -read /config/dhcp/*
AppleMetaNodeLocation: /Local/Default
RecordName: dhcp
RecordType: dsRecTypeNative:config
and then to create the key:
xadmin$ *sudo dscl . -create /config/dhcp/ bootp_enabled*
* Uncaught Exception: <NSInvalidArgumentException> ([DSoDataNode initWithDir:value:] value is not a valid NSString nor NSData)
but did not succeed. Somthing must be wrong with the syntax. Tried several (Config, dhcp noslash, bootp_enabled:) but nothing helped.
You dscl experts - please enlighten me!
Btw. Apple why not include to correkt syntax in a manual?worked for me, too
Thanks a lot,
Willi -
I am failrly green when it comes to automator.
I am trying to write an Automator program:
Not sure where to post this
trying to write an Automator program to find files and alter their names
I have a source folder with correct named master files in it.
eg. A0001_1234.mpeg
time created 14:02:03
date 07/07/2012
Another folder where there will be copies of the master files in a different format with different names but created at the same time as a file in the source directory.
they are created with a seperate device but they are
A0000001.mp4
time created 14:02:03
date 07/07/2012
I need it to then take the name from the source fies and apply the correct name to the matching file based on the time it was created.
I can't seem to find actions in automator that reference time crated.
Is this something I will be able to Do in automator?
Any help would be great
Thanks
RHi,
It's impossible to do this without any script in Automator.
Use this AppleScript script :
set source to choose folder with prompt "Select the source folder"
set anotherfolder to choose folder with prompt "Choose the another folder"
tell application "Finder"
repeat with tfile in (get files of source)
set cDate to creation date of tfile
set findFiles to (files of anotherfolder whose creation date is cDate)
if findFiles is not {} then
set tName to name of tfile
set name of item 1 of findFiles to tName
end if
end repeat
end tell -
Issue with FTP command while deleting a file.
Hello All,
I am trying to delete a file from the FTP server after the file is processed. I am able to connect to the server, I am able to pick the .csv file and place the data in an internal table, and am able to process it as required in SAP. After the processing, I need to delete that file from the FTP server. I did not change the working directory and gv_filename is the variable which is holding the filename. I am using the following code
concatenate 'delete' gv_filename into lv_cmd separated by space.
REFRESH mdata.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
handle = gv_handle
command = lv_cmd
TABLES
data = mdata[]
EXCEPTIONS
tcpip_error = 1
command_error = 2
data_error = 3
OTHERS = 4.
When I check the mdata which returns the result of the command, I get the message 550: unable to delete <pat>\filename,
where as the file does exist. Is there any condition where in we may not be authorized to delete the file? If so is there any way to check that?
Thanks and Regards,
SachinHi Sachin Dargan,
Yes.. You need to get read and write access for the directory of FTP file server where it is located..
Ask to BASIS or Network admin to give your authorization for it..
Also using upper case in single quotes is better.. as sometimes it may cause problem..
concatenate 'DELETE' gv_filename into lv_cmd separated by space.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
Mutiple sender files and receiver files with different file names
Hi All,
Following is my scenario: File (FTP) --> XI --> File (NFS actually SAP system)
I have 5 source files like ABC<b>1</b>_DateTimeStamp, ABC<b>2</b>_DateTimeStamp, ABC<b>3</b>_DateTimeStamp, ABC<b>3</b>_DateTimeStamp and ABC<b>3</b>_DateTimeStamp.
I can use single sender file FTP adapter with file name ABC* which picks up all 5 files, but can I use single receiver adapter to create 5 different files with the following file names: ABC1, ABC2, ABC3, ABC3 and ABC3 ?? And last 2 files (ABC3 and ABC3....same name) should be created after 30min and 60min of first ABC3 file. We have to do this because we have jobs scedule on SAP side with variants having file names.
Is it possible to achieve using single sender/receiver file adapter??
If not any suggestions how to do this scenario??
Thx
NavinNavin,
I doesn't know whether its feasible for you or not. Please see the below option
Create 3 Sender comm.channels and 1 Receiver comm.channel. In Sender /Receiver file adapter check the Adapter Specific Message attributes.
I'm suggesting the soln using BPM.
In IR, Create 3 Outbound Interface (Abstract) and create 1 Inbound Interface(Abstract).
First 2 comm.channel and 2 Oubtound interface refers to file 1 & file2 respectively.
The 3rd comm.channel and 3 Outbound interfaces refers to file3 & file4& file 5 .
Please see the BPM design.
http://www.flickr.com/photo_zoom.gne?id=698877499&size=o
Note : Navin the above suggestion is my thought, I think it will work. U can juz give a try.
Best regards,
raj. -
heyyall,
am trying to use the spool command to save a file from an output but i get the message:
SPOOL save.lis
SP2-0606: Cannot create SPOOL file save.lis
am using sql-plus 10.2.0.1.0
?No its not an advanced setup , its just i logged into database using putty, easy to use.
In Command Promt we use dir command to list the directories , in the same way in database ls list the subfolders/subdirectories and files present in the current directory.
I think you are using local database only right?.
Then go to command prompt (i.e., go to run and type cmd)
And from there i had done this scenario, please view it so that you can understand clearly
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Balaji K>dir
Volume in drive C has no label.
Volume Serial Number is 0282-81BD
Directory of C:\Users\Balaji K
03/27/2011 12:04 AM <DIR> .
03/27/2011 12:04 AM <DIR> ..
03/26/2011 03:04 AM <DIR> .VirtualBox
02/25/2011 04:57 PM <DIR> Contacts
03/26/2011 06:07 PM <DIR> Desktop
03/25/2011 06:00 PM <DIR> Documents
03/25/2011 08:44 PM <DIR> Downloads
03/04/2011 06:06 PM <DIR> Favorites
02/25/2011 04:57 PM <DIR> Links
02/25/2011 04:57 PM <DIR> Music
02/25/2011 04:57 PM <DIR> Pictures
02/25/2011 04:57 PM <DIR> Saved Games
02/25/2011 04:57 PM <DIR> Searches
03/26/2011 10:04 PM <DIR> Tracing
02/25/2011 04:57 PM <DIR> Videos
02/25/2011 06:07 PM <DIR> VirtualBox VMs
0 File(s) 0 bytes
16 Dir(s) 43,067,936,768 bytes free
C:\Users\Balaji K>sqlplus sys as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Mar 27 00:04:44 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter password:
Connected to:
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> spool example.txt
SQL> desc dba_users;
Name Null? Type
USERNAME NOT NULL VARCHAR2(30)
USER_ID NOT NULL NUMBER
PASSWORD VARCHAR2(30)
ACCOUNT_STATUS NOT NULL VARCHAR2(32)
LOCK_DATE DATE
EXPIRY_DATE DATE
DEFAULT_TABLESPACE NOT NULL VARCHAR2(30)
TEMPORARY_TABLESPACE NOT NULL VARCHAR2(30)
CREATED NOT NULL DATE
PROFILE NOT NULL VARCHAR2(30)
INITIAL_RSRC_CONSUMER_GROUP VARCHAR2(30)
EXTERNAL_NAME VARCHAR2(4000)
SQL> select username from dba_users;
USERNAME
SYS
SYSTEM
ANONYMOUS
MDSYS
OUTLN
DIP
TSMSYS
FLOWS_FILES
CTXSYS
DBSNMP
FLOWS_020100
USERNAME
XDB
HR
13 rows selected.
SQL> exit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Produ
ction
C:\Users\Balaji K>dir
Volume in drive C has no label.
Volume Serial Number is 0282-81BD
Directory of C:\Users\Balaji K
03/27/2011 12:04 AM <DIR> .
03/27/2011 12:04 AM <DIR> ..
03/26/2011 03:04 AM <DIR> .VirtualBox
02/25/2011 04:57 PM <DIR> Contacts
03/26/2011 06:07 PM <DIR> Desktop
03/25/2011 06:00 PM <DIR> Documents
03/25/2011 08:44 PM <DIR> Downloads
03/27/2011 12:05 AM 2,398 example.txt
03/04/2011 06:06 PM <DIR> Favorites
02/25/2011 04:57 PM <DIR> Links
02/25/2011 04:57 PM <DIR> Music
02/25/2011 04:57 PM <DIR> Pictures
02/25/2011 04:57 PM <DIR> Saved Games
02/25/2011 04:57 PM <DIR> Searches
03/26/2011 10:04 PM <DIR> Tracing
02/25/2011 04:57 PM <DIR> Videos
02/25/2011 06:07 PM <DIR> VirtualBox VMs
1 File(s) 2,398 bytes
16 Dir(s) 43,067,940,864 bytes free
C:\Users\Balaji K>
See now you can see the example.txt which we had spooled. Now if go with
C:\Users\Balaji K>edit example.txt command you can see that all the data is spooled into it.
And instead of exiting sqlplus, if you want to continue some other operations , then you can give spool off command .
sql> spool off.
Hope this helps you :)
Thanks,
Balaji K.
Edited by: balaji k on Mar 26, 2011 11:42 AM
Edited by: balaji k on Mar 26, 2011 11:43 AM -
To create 3 diff files with same content but with diff names in same target
Hi SapAll.
i have got a a requirement where pi need to create 3 different files with same content but with different names under same target from a single Idoc.
its an IDOC to 3 File Inteface.
can any body help me in providing the differnt solutions for this without use of any script executions.
will be waiitng for response.
regards.
Varma> i want to use only one communication channel to produce 3 different file names with same content ,so here i should use only one message mapping in 3 operation mappings .
This is not possible to produce 3 different file names with single CC. You have to use 3 different CCs. unless you have going to use some other trick e.g some script to rename the file etc..
As I suggested in my previous reply use Multi-Mapping Or create 3 different Interface Mappings (by using the same MM).
Note: You have to create 3 different Inbound Message Interfaces (you can use the same Inbound Message Type) otherwise while creating the 3 Interface Determination it won't allow because of same Outbound & Inbound Message Interface. It will simply say Interface alreday exists..
So, just use the Multi-Mapping which is best solution in my opinion, because the benefit of using multi-mapping are:
1. You have to create only single Message Mapping
2. Single Interface Mapping
3. Single Receiver Determination
4. Single Interface Determination
5. 3 Receiver CCs (3 you have to use in any case)
6. Performance wise it is good (read the blog's last 2 para)
7. And last but not the least easy to maintain the scenario.
Maybe you are looking for
-
New iPad2, can no longer connect to Wi-Fi
Just got and iPad2, could connect up to Wi-Fi and the Internet (set up bookmarks, etc.), but can no longer get on the Internet. Reset network settings, forgot network, entered data again, turned off Wi-Fi, turned it back on. Still shows iPad 2 is c
-
How to convert a PDF's Process Black to spot color
We have been asked to build InDesign templates for a two-PMS-color math book. The design calls for two PMS colors: a dark blue for most text and red highlights. Because our Math plug-in doesn't work easily with PMS colors (it defaults to Process blac
-
How to create lossless PDF from DOCX?
Hi everyone, Im currently trying to convert my Diploma´s Thesis to PDF but am having a hard time with the images. No matter which converter I try, the pictures come out skewed and low quality, just like below: Not only are the pictures skewed, but th
-
SQL Question containing '*'
When I send the SQL string: "SELECT * FROM db WHERE test like 'VERSION*';" to a database I cn't get an answere. But when I write it all out like this: "SELECT * FROM db WHERE test like 'VERSION589';" I get an answere. Why is this? What can I do to wr
-
Dbms_xmlsave for update
Hi, I'm using dbms_xmlsave for updating columns in a table with data in an XML file. This works only when the tags in XML file exact match the columnnames in the table. How can i do the same when the tagnames differ from the columnnames? Regards, Jos