Run the .sql file error

Hello
Every time when I run the below plsql, it's keep lance the error as show below output, this product even when I manually create the trigger before you run the file .sql of all the below statements, can you please correct me what I'm doing wrong here. Thank you.
DROP TABLE FCSDWH.REF_DATA_MASTER;

CREATE TABLE FCSDWH.REF_DATA_MASTER
(
REF_DATA_MASTER_ID                      NUMBER PRIMARY KEY,
DESCRIPTION                                     VARCHAR2(255 CHAR),
CREATE_ID                                       VARCHAR2(10 CHAR),
CREATE_DT                                       DATE,
LST_UPD_ID                                      VARCHAR2(10 CHAR),
LST_UPD_DT                                      DATE,
ACT_STRT_DT                                     DATE,
ACT_END_DT                                      DATE
)
TABLESPACE FCSDWH
STORAGE(INITIAL 50K);

DROP SEQUENCE FCSDWH.REF_DATA_MASTER_SEQ;

CREATE SEQUENCE FCSDWH.REF_DATA_MASTER_SEQ START WITH 1 INCREMENT BY 1;

DROP TRIGGER "FCSDWH.REF_DATA_MASTER_TRG";

CREATE OR REPLACE TRIGGER FCSDWH.REF_DATA_MASTER_TRG
BEFORE INSERT ON FCSDWH.REF_DATA_MASTER
FOR EACH ROW
BEGIN
SELECT FCSDWH.REF_DATA_MASTER_SEQ.NEXTVAL INTO :NEW.REF_DATA_MASTER_ID FROM DUAL;
END;
/
Output:
SQL> @/home/smadala/REF_DATA_MASTER.SQL

Table dropped.


Table created.


Sequence dropped.


Sequence created.

DROP TRIGGER "FCSDWH.REF_DATA_MASTER_TRG"
*
ERROR at line 1:
ORA-04080: trigger 'FCSDWH.REF_DATA_MASTER_TRG' does not exist



Trigger created.

SQL>

Relaxation is "attached" to the table when you delete the table the trigger is going as well.

John

Tags: Database

Similar Questions

  • How to run the .sql file

    Hello
    I want to execute .sql files in sql, as well as a fixed location, it may be the network location or to the system drive. so that I can use it on other computers when I'll work on another pc.

    so please tell me for the localization of network and disk solution. by default it look in the BIN directory

    I use oracle 10g.
    Thank you

    Apart from William Robertson's response:
    I'll make sure that I put it for everyone on a network share and map their in their connection to this directory, so it can be accessed as g: or letter that everything that you want. That would keep things manageable.

    For the question of privilege, please set up a separate thread.

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • Execution of the SQL file error break

    I have a build file where I call my DB objects creation scripts. For example:
    @COUNTRY_MASTER.sql
    @COUNTRY_MASTER_AUDIT.sql
    @COUNTRY_MASTER_TEMPTABLE.sql
    @COUNTRY_MASTER_WORKTABLE.sql

    I want to pause, or the output of the execution of this script in case of failure of any script. Also in the event of failure, I want to know where the script failed (what a line and file name).

    You can leave sqlplus when an error occurs using the macro command WHENEVER :

     WHENEVER OSERROR
     ----------------
    
     Performs the specified action (exits SQL*Plus by default) if an
     operating system error occurs (such as a file writing error).
     In iSQL*Plus, performs the specified action (stops the current
     script by default) and returns focus to the Workspace if an
     operating system error occurs.
    
     WHENEVER OSERROR {EXIT [SUCCESS|FAILURE|n|variable|:BindVariable]
                       [COMMIT|ROLLBACK] | CONTINUE [COMMIT|ROLLBACK|NONE]}
    
     WHENEVER SQLERROR
     -----------------
    
     Performs the specified action (exits SQL*Plus by default) if a
     SQL command or PL/SQL block generates an error.
     In iSQL*Plus, performs the specified action (stops the current
     script by default) and returns focus to the Workspace if a SQL
     command or PL/SQL block generates an error.
    
     WHENEVER SQLERROR {EXIT [SUCCESS|FAILURE|WARNING|n|variable|:BindVariable]
                        [COMMIT|ROLLBACK] | CONTINUE [COMMIT|ROLLBACK|NONE]}
    

    There is no command for interruption of treatment when an error occurs. Sqlplus command language is very primitive. There is no simple way to perform conditional processing. And user interaction is limited to ask for values for substitution variables.

  • My Cookie file was corrupted in data and my programs continually pop up with the 'corrupt file' error when a program opens, pointing to \Users\name\Appdata\Roaming\Microsoft\Windows\Cookies.

    My Cookie file was corrupted in data and my programs continually pop up with the 'corrupt file' error when a program opens, pointing to \Users\name\Appdata\Roaming\Microsoft\Windows\Cookies.

    The problem is, Chkdsk will not fix this, and I can't access the file. This opens up a world of problems when I need to fix this error, so I can upgrade to Windows 7. Help, please!

    I just ran the scan again. He said of the errors found, but could not be repaired.

    This problem actually has nothing to do with internet explorer. It's the cookies folder that is corrupt in the Windows folder in roaming. The error file is in conjunction with the programs, that I try to run (AIM, Skype, so forth). Trying to enter the folder it says it's corrupt. I don't know what is the root of the problems or how to solve this problem, but these measures have not helped so far. Regarding the repair, I will try that next.

    http://Tinypic.com/view.php?pic=14mw4ly&s=4

    Here is a picture. This is the error of the lower right

    It's what the tool SFC to see system files corrupted and try to repair the system files.
    SFC could not fix it.

    Looks like you will need to do this:

    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    Read the info on the link above.

    Good luck with it.

    Let us know how you go with it.

    See you soon.

    Mick Murphy - Microsoft partner

  • Window 7 unsuccessful backup, error message "the system cannot find the specific file" error code: 0 x 80070002.

    I tried to back up my desktop using Windows 7 upwards, but he is not successful, he stopped, message error "the system cannot find the specific file" error code: 0 x 80070002.  He said no specific file that causes the problem.

    Also, my Seagate FreeAgent, I back upwards of C: from my old PC that runs under Windows XP, which causes conflicts of the OS?  Enjoy diagnose and advise!

    Hello

    I imagine the inconvenience that you are experiencing. I will certainly help the question of fixing.

    I suggest you follow the steps in the link below and check off the question:

    0x8100002F error code and or error code 0 x 80070002 when you back up files in Windows 7:

    http://support.Microsoft.com/kb/979281

    I hope that the information above helps you.

  • How do I run the .srt files in wmp 12

    original title: How do I run the .srt files this subtitle files in wmp 12 s? I downloaded directvobsub... but it isn't working...

    I bought a sony vaio e series laptop computer... I downloaded movies to watch and I'm interested to watch in vlc or other players, so I need to know how to watch movies with subtitles... Please help me

    my laptop i5 processor and it is x 64 bit...

    Hello, Sathyasheelan,

    HOW to: Watch movies and TV shows with subtitles

    http://hellboundbloggers.com/2010/06/03/watch-movies-and-TV-series-with-subtitles/

  • Can not run the executable file by LV7.1

    Hi all

    I'm surprised, I can't build and run the executable file LV7.1.

    I used to write a few vi with LV7.1 and built the executable according to these vi. It was no problem to build and run this executable file at that time. Now I can open these vi well with LV7.1, bu I can't run this executable file, it will be a mistake, please refer to the attachment. I'm trying to compile an executable file according to a simple vi, and then I can't run this exe file much more.

    Can you help me solve this problem? Thank you in advance.

    Evan

    @Christian: this is not correct.

    One of the reasons to do this is if LV 7.1.1 is installed, and then you install an application, including the runtime engine built in 7.1. It corrupts the execution engine.

    See here: http://digital.ni.com/public.nsf/allkb/680E61A4D02158A186256F7A0073C228

    Daniel

  • How can I save xml file n, run the xml file? Please help me

    How can I save xml file n, run the xml file? Please help me

    Hello

    The question you have posted will be well suited in the MSDN forum. Click on the link below.

    http://social.msdn.Microsoft.com/forums/en/categories/

    In the meantime, I suggest you to return the item mentioned below.

    How to use XML Notepad to create an XML document

    http://support.Microsoft.com/kb/296560

  • What is "Error of Privoxy" Privoxy (oooooobo) fatal error: could not check the configuration file ':(error number 2) Config.Txt

    What is "Error of Privoxy" Privoxy (oooooobo) fatal error: could not check the configuration file ':(error number 2) Config.Txt.

    I always get this message in a long horizontal area on my desk top once I restart and turn on my computer.

    Thank you

    "Privoxy" is a 3rd party is no program not part of Windows XP.  You can go to
    Panel-> Add/Remove programs
    and remove this program.  If you still think that you need this program, try reinstalling it on Sourceforge
       <>http://sourceforge.NET/projects/ijbswa >

    HTH,
    JW

  • I, stupid, changed the program by default to a BAT file to the cmd prompt, well, now I can't run the batch files now, please help!

    I, stupid, changed the program by default to a BAT file to the cmd prompt, well, now I can't run the batch files now, please help!

    Hi William,.

    Welcome to the Microsoft community.

    Batch file is a type of script file, a text file, containing a series of commands to be executed by the command prompt. When you run a batch file, it opens the command prompt to run the scripts.

    It would be great if you can answer the following questions:

    1. what happens when you try to run a batch file?

    2 are. what batch file you referring?

    3. the problem occurs for a particular batch file?

    First of all, I suggest you to check the commands written in a batch file. To do the same thing, just right-click on the batch file, and then click change. It will open Notepad with the list of orders scripted for this particular batch file.

    If you have additional questions on the computer, please ask your question about Windows and we will be happy to help you.

  • Run the local file after AnyConnect establishes a connection

    We have recently installed a pair of ASA 5525 and ran into a feature that was present on our old Juniper VPN solution that I can't read on the ASAs with AnyConnect news.  With the old solution when the VPN client on the computer of a user connected to the network, we would launch a program on the machine which would then map user share directories and printers - is there a similar solution with the installation of ASA\AnyConnect?  There is a batch file that is present in the same place on each of the assets of the company might be called to run this program, I just can't find a way to run the batch file, if possible.

    A solution to the issue is to have AnyConnect start before the connection of the user, then the program runs when the user opens a Windows session, but I would avoid this scenario if possible - I don't want AnyConnect launch before user logon.

    For any idea or suggestion would be greatly appreciated.

    Thank you.

    Paul

    Yes, this feature exists in anyconnect.

    http://www.Cisco.com/c/en/us/TD/docs/security/vpn_client/AnyConnect/ANYC...

  • Run the .bat file using fileObj.execute () showing the result by completely removing the lines of code in extend script?

    Hi guys

    I created a dynamic .bat file created inside java and copy it to a location and managed through fileObj.execute ();

    Example of

    -------------------

    var line1 = 'some code ";

    var line2 = 'some code ";

    myCode var = line 1 + line 2;


    var myFileC = new file

    myFileC.open ('w');

    myFileC.write (myCode);

    myFileC.copy ("some location\file.bat");

    myFileC.close ();

    Run the .bat file

    batFile var = new file ("of the location\file.bat");

    batFile.execute ();

    Now .bat file is successfully executed but the content of this file created bat shows up to extend in script by removing all my code above...

    I have to cancel to do back whenever I run and sometimes accidentally I saved it lose all the code.

    can someone help with this problem?

    Simply change it to this:

    var myFileC = new File ("some location\file.bat");

    myFileC.open ('w');

    myFileC.write (myCode);

    myFileC.close ();

  • Whenever I try to install and update creative cloud, he's going to halfway and stop the download says "Setup could not access the critical file (error code46).

    Whenever I try to install and update creative cloud, he's going to halfway and stop the download says "Setup could not access the critical file (error code46).

    Hello

    Please refer to the instructions mentioned in the link below, it should help:

    Cannot install Creative cloud installation - error code 46

    "Setup could not access a critical file. Please try to reinstall. (error code: 46) »

    Stop creating cloud download

    Let us know if this was helpful.

    Kind regards

    Bani

  • Run the jsxbin file in illustrator cs6

    Hello

    Can someone please help to to run the jsxbin file in illustrator cs6

    I tried putting my jsxbin file in program leader/adobe/Adobe Illustrator CS6 / Presets / Scripts and restart illustrator I have my find my script placed in the script file

    I tried in another way by dragging it to illustratorcs6 I see encrypted only the text

    Thank you

    APPU

    Replace the file with *.jsx extension

  • How to import the .sql file in oracle apex?

    I am new to oracle apex...

    How to import the .sql file in oracle apex?

    I have to import a table in apex...

    This script I have to write in the .sql file...

    pls help...

    Published by: 794244 on January 31, 2011 21:31

    Hi Manu

    You can import and browse workshop SQL, SQL Scripts .sql files. If you have multiple SQL statements in your script, make sure that they are separated by the / character

    Andy

Maybe you are looking for

  • Windows Live Mail - better than ever

    I've been a user of Windows Live Mail because it was offered in beta and am constantly impressed by what it can do.  This is the program of an email that is reliable and has almost every feature you could want in an e-mail program (and it's free). Th

  • Router Linksys HG200 v2 does not not with Talk Talk

    After years of rejection of the suppliers, that I decided to move from BT to Talk Talk as the frm service move is free in my area and after a year 'rest staff' money is pretty tight. However, my Linksys router will not just see Talk Talk Internet (PC

  • Deletion of sites toolbar preferred without getting rid of all the sites on the Favorites bar.

    Just right click & Delete a favorite in the toolbar do not get rid of it up.  There are things about my favorite toolbar that I want, so I don't want to get rid of the Favorites toolbar, just a few things that arose after that I took my laptop in a s

  • Z10 blackBerry how ' mark all Messages as read "?

    I just got my Z10 (fantastic phone btw) and add my our email, now I have a bunch of unread emails. Is there a way to "mark all as read" or "mark all previous as read '?"

  • TMS - XE Cluster Network Share size

    Hello Can't seem to find any guidance of sizing for Cluster TMS network sharing - XE. Will a hybrid deployment of CMR size medium with up to 25 endpoints re... TIA