Is there anybody to reply?

Hi,
Is there anybody to reply?
i am using oracle 11g R1 on windows platform.
i am using this in sqlplus prompt . Actually i am using a batch file to change the dump .
DEFINE FILE_NAME=&file_name; -- This will ask the Dump file name as an input.
declare Schema varchar2(20);
begin
select substr('&&file_name',23,instr('&&file_name','0')-22) into Schema from dual; -- this will give the Schema name as an output.
dbms_output.put_line(Schema);
end;
Drop user &&Schema Cascade;--(Now i am facing the problem in this line. I am not getting Schema name to drop)
host imp system/oracle file=&&file_name fromuser=&&Schema touser=&&Schema log=&&file_name --(I am not getting result)
Can u tell me what's the problem in this Script. and is there any other way to achieve the same target?
Thanks & Regards,
Vikash
Edited by: Vikash Chauradia(Junior DBA) on Jan 25, 2011 12:45 PM

maybe you could make an enviroment file setting file_name and schema name and make a call process redirecting it to that script with those variables as arguments at the time of calling sqlplus. Like this
enviroment file:
FILE_NAME=file
SCHEMA_NAME=schema
SUPER_SCHEMA=system
SUPER_PASSWORD=system_password
your script:
DEFINE FILE_NAME=&file_name; -- This will ask the Dump file name as an input.
declare Schema varchar2(20);
begin
select substr(&file_name,23,instr(&file_name,'0')-22) into Schema from dual; -- this will give the Schema name as an output.
dbms_output.put_line(Schema);
end;
Drop user &schema_name Cascade;--(
quit
calling script:
call enviroment;
sqlplus %SUPER_SCHEMA/%SUPER_PASSWORD @yourscript %file_name %schema_name
imp %SUPER_SCHEMA/%SUPER_PASSWORD file=%FILE_NAME fromuser=%SCHEMA_NAME touser=%SCHEMA_NAME log=%FILE_NAME --(
i think this is the way to get the arguments inside the script, but im not 100% sure, can anyone confirm this?.
cheers ^^.

Similar Messages

  • Hi,everybody! Is there anybody have interest in scientific computing?

    Most of my job is to solve some kinds of numerical problems.And I have been using C and GNU\Linux to solve them for about 3 years. But I wanna get a Solaris for its stability.Is there anybody have the same idea?

    OrionUnix wrote:
    Thank you for your reply! In fact ,Solaris is totally new for me .'stability' is something I've heard from my friend. So I'm not sure I have the proper idea.I just wanna have a try. A try at what? Solaris or Java or both. If Java then the platform to be used does not matter.
    And I have no idea about combining numerical computing with java now.Err ... I don't understand. Numerical computing changes very little with any reasonably modern language. The main difference is likely to be the available libraries. Do you know any Java? If not then start with http://java.sun.com/docs/books/tutorial/ .

  • My iphone 4 is dead after I updated to ios 6.1.3 it doesnt turn on and doesnt respond to itunes also. Visited Apptronix service desk but they say there is nothing they can do about it, and they have charged INR 10640 for a new one. Is there anybody same..

    My iphone 4 is dead after I updated to ios 6.1.3 it doesnt turn on and doesnt respond to itunes also. Visited Apptronix service desk but they say there is nothing they can do about it, and they have charged INR 10640 for a new one. Is there anybody with similar problem....

    Hm... Try this----> http://support.apple.com/kb/ht1808 or http://osxdaily.com/2010/12/04/ipad-dfu-mode/

  • Problem during installation of iTunes 10.7 on Win7 x64. Is there anybody that can help me?

    Hello everyone!
    I've a problem during installation of Itunes 10.7 on Window 7 x64. I had installed v11 but i don't like it, so i've uninstalled correctly this version and i have downloaded v10.7
    The message, translated in english, is:
    UNKNOWN \ Components \ ... \ 2B0163E6D0340BE2758E9BEDD8.
    Make sure you have sufficient access to that key, or contact your support staff.
    I don't know how to do...I don't want to format my pc
    I have already tried to erase all the "apple" folders on directory C:\, but nothing to do...
    Is there anybody that can help a poor italian boy, please?
    Thanks a lot,
    Teo

    Thx Polydorus!
    this evening i'll try and i'll tell you if it works!
    Teo

  • I accidentally put a passcode lock on my iPhone and I forgot what I set for it, is there a way to take it off without accessing the phone? I have restored my phone but it doesn't work, is there anybody that could help me please?

    I accidentally put a passcode lock on my iPhone and I forgot what I set for it, is there a way to take it off without accessing the phone? I have restored my phone but it doesn't work, is there anybody that could help me please?

    You can't "accidentally" put a passcode on any iPhone...its a multi-step process. Further, restoring an iPhone will remove the passcode, as the passcode is not included in an iPhone backup.
    Are you sure you're talking about the phone passcode & not something else...like the "Restrictions" passcode?

  • Is there anybody that upgraded an "older" MacBook to Mavericks

    Hello
    I have a MacBook (MacBook 2,1 Mid 2007) with an Intel Core 2 Duo, 2.16 GHz processor. It's executing 10.6.8 (Snow Leopard) and it runs very well. Is there anybody with a similar setup that upgraded to Mavericks ?
    If so, any problems ? Did it slow down your coputer ?
    Thank's for your input.

    To install Mavericks, you need one of these Macs:
    iMac (Mid-2007 or later)
    MacBook (13-inch Aluminum, Late 2008), (13-inch, Early 2009 or later)
    MacBook Pro (13-inch, Mid-2009 or later),
    MacBook Pro (15-inch or 17-inch, Mid/Late 2007 or later)
    MacBook Air (Late 2008 or later)
    Mac mini (Early 2009 or later)
    Mac Pro (Early 2008 or later)
    Xserve (Early 2009)
    Your Mac also needs:
    OS X Mountain Lion, Lion, or Snow Leopard v10.6.8 already installed
    2 GB or more of memory
    8 GB or more of available space

  • Is there anybody know the meaning of Condition control in pricing?

    Hi everybody,
    When I create  a sales order in CRM,and the system will call IPC for pricing calculation,
    Object "pricingcondition" is one of the parameters,in which there is a field named "m_control",it's condition control.
    As far as I know,it has some potential values,such as "A","B",and "C".Is there anybody knows the meanning of them?
    Thanks.
    Edited by: Jerry cui on May 20, 2010 8:20 AM

    hi,
    This field Indicates whether the prices or values in a condition are fixed or whether they have been changed and, if so, in what way. For example the indicator shows, for example, if the prices generated by a condition have been changed manually during processing.
    A     Adjust for quantity variance
    B     Free
    C     Changed manually
    D     Fixed
    E     Condition value and basis fixed
    F     Condition value fixed (billed items)
    G     Condition basis fixed
    H     Condition value fixed (cost price)
    This field is same as the R/3 field KONV-KSTEU.
    Thanks and Regards
    shanto aloor

  • Is there anybody knows the designed logic in report RHAUTUPD_NEW?

    Hi, expertes,we met a problem has somthing with SAP standard report RHAUTUPD_NEW,
    is there anybody knows the designed auhtorization profile delete/add logic?
    Thanks in advance.
    Jerry.

    I don't understand the problem. Please post the complete screenshot. And possibly the outline view.

  • Hello is there anybody who can help me in german? i have the same problem like the guy with i tunes. it won´t open an give me an error "An application has made an attempt to load the C runtimelibrary incorrectly" Please contact the application´s support..

    I´ve so many privat things on I tunes like pictures, music etc.and i won´t loose them. is there anybody who can help me to save my private things and help me to solve teh problem
    Thanks you for help greetings from austria

    I just had the same error: 
    R6034
    An application has made an attempt to load the C runtime library incorrectly.  Please contact the apps support team for more info.
    I went to http://support.apple.com/kb/ht1925 and did a complete removal and reinstallation of iTunes. You MUST follow the directions here exactly...it's more than just iTunes that must be removed, and it MUST be done in the order in which the support article says.  I followed the exact instructions, and iTunes is back on my machine (no more C runtime error) and you do NOT lose your music...it's all in my library, as it was before.
    Good luck!

  • I CANNOT ACTIVATE MY ILLUSTRATOR  AFTER FIXING MY COMPUTER. IT SAIS THAT I AM NOT CONNECTED TO INTERNET BUT I AM. IS THERE ANYBODY WHO CAN HELP.

    I CANNOT ACTIVATE MY ILLUSTRATOR  AFTER FIXING MY COMPUTER. IT SAIS THAT I AM NOT CONNECTED TO INTERNET BUT I AM. IS THERE ANYBODY WHO CAN HELP.

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • I got my ipad this afternoon, and it suddenly shutdown after i create my account.  I can't open it since 3 hours. Is there anybody who can help me

    hi, i got my ipad 3 this afternoon, i created my account. When i'm about to install my fb, suddenly my ipad shutdown . Since 3 hours now, i can open it. Is there anybody who can help me what to do? The batter was fully charged. Thanks you

    Try a Reset. Power and Home Press For 10 Seconds

  • I would like to know is there anybody out there in the community who is not having a problem with the updates.

    I would like to know is there anybody in the community that is not have a problem with the updates.

    That is incorrect. Either you misread or the newspaper you read was wrong. iOS 6.1.2 fixes a bug that caused excessive activity and log entries with Exchange servers.
    http://support.apple.com/kb/DL1639
    The security breach was due to Java-based malware:
    http://www.ft.com/cms/s/0/1fdebce6-7ac8-11e2-915b-00144feabdc0.html

  • NI have a Braun Photo Technik slidescan 3600 and it canot make it work with Lion: Is there anybody who sorted out the same problem? thanks

    I have a Braun Photo Technik slidescan 3600 and I cannot make it work with Lion. Is there anybody who sorted out the same problem? thanks

    We sure do have a problem - this is strictly a user to user assistance forum with users helping other users use the iPhoto program as it is - no one here has any ability to change or influnence the desigh or implementation of iPhoto
    try the iPhoto menu ==> provide iPhoto feedback
    LN

  • Is there anybody can help me ?

    I am using the PIC16F84 as the MCU to control the parallel D/A and A/D converter through portB. But I have no idea with the MCU program in C language.
    Is there anybody has some samples to show me how to do it? Thanks in advance!

    best option is to get C for dummies. That is a good place to get basic handle on programming structures and proper formatting syntax for the language. C is an easy language with proper guidance........expect at least a 2 to 3 month learning curve if your completely new to the process of programming language
    Signature: Looking for a footprint, component, model? Might be here > http://ni.kittmaster.com

  • Is there anybody really using Loopback ??

    Hi,
    I'm using latest version of MainStage ( 2.1.1 ) in 32-bit mode and I cannot figure out how to use the overdubbing feature in Loopback plugin. First record is always fine, but overdubbing is normally failing: maybe no record or just starting late or at wrong time.
    Also problems undoing last record or even clearing the tape I have found sounds not deleted.
    Is there anybody using Loopback at all ??
    Regards,
    Joan

    I'd also like to hear who is successfully using Loopback during live performance. I had it hooked up to some footswitches and was learning my way around it, but was finding it too temperamental to risk using for using looping in my live solo performances. As you know, timing has to be accurate, and operation flawless.
    I have resorted back to using my Boomerang III hardware looper, which I am very comfortable with. I use Mainstage for all my other guitar effects (as well as vocal, sax, and WX5). I also use Mainstage to route what goes into the Boomerang, and to control loop volume in the mix. This combination has been stable and predictable for me so far, which is crucial for live solo performance.

Maybe you are looking for