Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> export file name

export file name

From: Thiko <biwombi_at_hotmail.com>
Date: Sat, 21 Jul 2001 21:29:52 GMT
Message-ID: <b8d3b40c.0107060024.13c2ee01@posting.google.com>

I would like to pass in the users schema name and the date of the export and the sequenceid from a database sequence called ExportDumpID for the name given to the export dump file.

So far I have the date and sequence passed into the filename using sqlplus scripting.

Then I have a pl-sql function (within a package body) which returns the username of the user currently logged in.

Any ideas on how to now put/syntax the username returned by the function into the sqlplus script to be returned into the export filename like the date and sequence number?

To become for example

betty_08JUN2001_45.dmp

Many Thanks.

Thiko!


column user new_val user
column today new_val dt
column sequence new_val seq

SELECT TO_CHAR(sysdate,'dd-mm-yyyy HH24:MI') today FROM dual; SELECT ExportDumpID.NEXTVAL seq FROM dual;

host exp FILE=exp_&user_&dt_&seq.dmp OWNER=Y GRANTS=Y ROWS=Y COMPRESS=Y exit


--

Received on Sat Jul 21 2001 - 16:29:52 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US