Replacing "" from scripts which has table DDLs

HI,
I use an oracle version of Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production.
I have few scripts consisting of DDLs for table. But  almost all CREATE TABLE syntax  consist of double quotes "" for the column name and table name like below example:
After architecture review, we came to know that we need to remove all the double quotes from all scripts for column names and table names making sure other double quote usage are not impacted in any part of those scripts. But doing it manually by going through all scripts/tables seems to be huge effort. So am seeking suggestion if there is any way we can achieve this in a simpler way.
Thanks

After architecture review, we came to know that we need to remove all the double quotes from all scripts for column names and table names making sure other double quote usage are not impacted in any part of those scripts. But doing it manually by going through all scripts/tables seems to be huge effort. So am seeking suggestion if there is any way we can achieve this in a simpler way.
Yes, there are at least two much simpler ways:
1. Replace the architecture review team with people who use logic and reason as the basis for the standards that they adopt.
2. Replace the 'remove all the double quotes' requirement from the standards list.
If you plan to adopt a standard then you should adopt an industry standard. If you use any other standard then there should not only be a rational justification for NOT using the industry standard (in this case Oracle's) but there should also be some rational, and demonstrable, value to the standard that you adopt. I cannot think of any justification for NOT using the Oracle standard not am I aware of any value whatsoever to removing all double quotes from scripts.
In addition, in almost 30 years of working in the field I am not aware of ANY organization that has adopted such a standard.
Oracle both provides, and uses, extensive functionality for creating and using DDL. The DBMS_METADATA package is used by Oracle for both export and import and the standard used by that package is to enclose object names in double quotes. The reasons for this standard have already been stated by others. One example is the possible use of mixed-case for object names. But mixed-case is also used for path names in DIRECTORY objects, TABLESPACE objects, database links and for extracted passwords.
Any extraction of DDL your org does will likely etiher use the DBMS_METADATA package or a tool that follows the Oracle standard.
So your teams 'standard' not only contravenes the industry standard but imparts a substantial penalty in terms of the resources needed to constantly identify and correct the any DDL extracted from your systems.
Here is a trivial example of using the Oracle package to extract DDL for the SCOTT.EMP table.
select dbms_metadata.get_ddl('TABLE', 'EMP', 'SCOTT') from dual
CREATE TABLE "SCOTT"."EMP"
( "EMPNO" NUMBER(4,0),
"ENAME" VARCHAR2(10),
"JOB" VARCHAR2(9),
"MGR" NUMBER(4,0),
"HIREDATE" DATE,
"SAL" NUMBER(7,2),
"COMM" NUMBER(7,2),
"DEPTNO" NUMBER(2,0),
CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "USERS" ENABLE,
CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
) SEGMENT CREATION IMMEDIATE
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "USERS"
If this were me I would use ALL of my political capital to fight the battle against this non-sensical 'standard'. There is simply no rhyme or reason for it, it will waste a lot of valuable personal resources and the cost/benefit ratio simply can't justify it.
Those resources would be MUCH better used on other tasks.

Similar Messages

  • Can i get my iPhone replaced from Singapore which was bought from USA ?

    I bought an Iphone 4 from US which has an extended applecare coverage.... I believe that there is a hardware problem in my iphone....
    Can it be replaced in singapore ?
    As i will be visiting singapore this week......
    If NO then what are the options for me...
    And if YES then where can i get it done ??

    Dr.Adil wrote:
    Can you please ask this on my behalf... ??? coz i am in pakistan.... and this would be a difficult job for me to do :S
    You're just as capable as anyone else here of asking and finding out the answer yourself.
    Contact Apple in your country, or whomever provides support.

  • I downloaded a song (Matt Corby Winter) from itunes which has disapeared from my computer.  I have followed the instructions to locate it but haven't been able to.  I need to download it again from itunes.  How do I do this?

    I downloaded a song (Matt Corby Winter) from itunes which has disapeared from my computer.  I have followed the instructions to locate it but haven't been able to.  I need to download it again from itunes.  How do I do this?

    A simple search finds this article:
    Download past purchases - Apple Support

  • I have a new logic board and fce is asking for my serial number from packaging , which has long gone- help?

    final cut express
    I have a new logic board and fce is asking for my serial number from packaging , which has long gone- help?

    Without the serial number your FCE disc is useless and nobody here can help.
    Your only chance, if you have the receipt or can prove your purchase is to contact Apple and hope they may be able to help.

  • Ive deleted movies from itunes which has removed them from apple tv, i still have them on my ipad, is there any way i can get them back into itunes?

    ive deleted movies from itunes which has removed them from apple tv, i still have them on my ipad, is there any way i can get them back into itunes?

    If the movies were rentals then no.
    If the movies are purchases and you have the iTunes 10.4 then you should be able to access the 'cloud' option from in the main iTunes page  - purchases - (upper right corner) and go from there.
    You should also have the option to transfer purchases from the iPad back into iTunes. I don't have an iPad but you can transfer purchases from the iPod/iPhone back to iTunes.
    MJ

  • To Get List of Tables from Database which has the data 'AAAA' - T-SQL Query

    Hi,
    I have a database "Adventureworks", I need to get list of tables, which has the data 'AAAA' in their rows.
    Is there any optimised or simple way to do this task?
    Any T-SQL Query Available
    --- Thanks in advance..

    You can refer the same below URL provided by Praveen:
    https://gallery.technet.microsoft.com/scriptcenter/c0c57332-8624-48c0-b4c3-5b31fe641c58
    It has the SQL SP - "SP_SearchTables". You can pass parameters the way you want and get the expected output.
    -- Search for 'bike' instead of 'AAAA'
    Use AdventureWorks2012
    EXEC SP_SearchTables @Tablenames = '%', @SearchStr = '%bike%'
    -Vaibhav Chaudhari

  • Replacing Internal Drive which has OS

    I want to update my older drives in my Mac Pro with newer, larger capacity ones. I am cool with the physical install aspect (I installed the others successfully earlier).
    My 2 questions are:
    1) I want to replace my first drive which has all my Libraries/Apps/Document/Desktop etc. I tried to copy that drive (as I did with the others) onto an external 4T drive, but got a "do not have permission to copy" (or similar) error message. Is this a migration issue (instead of dragging in Finder?)
    2) When I start up after installing the new drive, won't the computer be looking for the OS?
    Confused and definitely not attempting this until I hear some good tips from all of you!
    Thanks!

    I want to replace my first drive which has all my Libraries/Apps/Document/Desktop etc. I tried to copy that drive (as I did with the others) onto an external 4T drive, but got a "do not have permission to copy" (or similar) error message. Is this a migration issue (instead of dragging in Finder?)
    You need to use a program such as SuperDuper or Carbon Copy Cloner.
    When I start up after installing the new drive, won't the computer be looking for the OS?
    Press the Option key at startup, tab as needed, and then change the setting in the Startup Disk pane of System Preferences.
    (50981)

  • How to call a Query from widget which has mandatory variables/filter values

    Dear Gurus,
        I want to show data from BI query (BEX) in Wedget, which has variable/ Filter as input parameter.     Please tell me how add these parameters while calling query throgh web service.
    Regards,
    Aslam Khan

    Hi Aslam,
    Kindly refer to Page Number 49 u2013 23rd Point and Page 50 and 51 in the SAPEnterpriseWidgetDevelopmentGuide.pdf u2013 Which explains how to pass the Import / input Parameters.
    You can also refer these links u2013 [How to pass more than one value in RfcRequest ?;
    [how to bind an input field with an rfc input;
    Hope it helpsu2026
    Regards,
    Shilpa B.V

  • In Smartforms can i use table type which has table inside table

    Hi ,
    I would like to know whether in Form Interface can we declare table type which has a table and one of its field is again a table( Nested tables)..
    Can we declare like that ?? Need your suggestions please...
    Rgds.,
    subash

    Yes, we can.
    Check Smartform LB_BIL_INVOICE
    Importing parameter IS_BIL_INVOICE TYPE LBBIL_INVOICE
    Regards,
    Naimesh Patel

  • Impdp specific schema from dump which has been created using full=y

    Hi,
    I have received a dump (expdp) which has been created using the parameter FULL=Y. I just want to import (impdp) only one schema into my database. I have used remap_schema and exclude=grants. The schema i want to import is carried out successfully, but in my import log i keep getting the messages such as :
    ORA-31684: Object type TABLESPACE:"TS_BCST1" already exists
    ORA-31684: Object type USER:"OUTLN" already exists
    ORA-31684: Object type SEQUENCE:"SYSTEM"."MVIEW$_ADVSEQ_GENERIC" already exists
    How can i use impdp only to import objects under my specific schema and not have impdp attempt to create system/sys users and its objects, create tablespaces, etc etc.
    Kindly assist.
    Regards,
    Karan

    Use SCHEMAS parameter in the impdp command to import the scpecific schema.
    Eg.
    impdp system/password schemas=user1 remap_schema=user1:user2 directory=dir dumpfile=user1.dmp...........
    You can specify list of schemas you want to import with , (comma) saperated in the SCHEMAS parameter.

  • How to insert a record in to oracle table from Java which has a oracle LONG Field?

    The problem is only 80 char's inserted in to the LONG FIELD which happend to me when i run the same insert statement from SQL plus.
    Here is the code....
    java.io.File inputFile = new java.io.File("input.txt");
    int inputFileLen = (int) inputFile.length();
    java.io.InputStream ipStream = new java.io.FileInputStream(inputFile);
    System.out.println(inputFileLen);
    PreparedStatement myStmt = conn.prepareStatement("insert into LONG_EXAMPLE (notes,name)values(?,?)");
    myStmt.setAsciiStream(1, ipStream, inputFileLen);
    myStmt.setString(2,"Steve");
    int res = myStmt.executeUpdate();
    myStmt.close();
    Note : Here the size of the input.txt 250 bytes , 1KB.
    Thanks in advance......:-)
    Cheers,
    Vetri !

    Hien
    I had a similar requirement to you and put the code on a push button. In my case the reports are being run interactively to the screen and then printed, and I have no way to know whether the report had actually been printed, so we rely on the user pressing the button. Of course there is a danger that the user forgets to press the button, but in our situation that would not be disasterous. Whatever method is used, I don't think there is any way to be sure that it has actually come out of the printer.

  • Trying to execute a STP which has TABLE TYPES.

    Hi,
    I wrote a program with the below specification inside a pkg :
    pl/sql varray declaration inside the pkg,
    TYPE varray_tnb IS TABLE OF CHAR(10) INDEX BY BINARY_INTEGER;
    TYPE varray_act_cd IS TABLE OF CHAR(15) INDEX BY BINARY_INTEGER;
    TYPE varray_sts_cd IS TABLE OF CHAR(10) INDEX BY BINARY_INTEGER;
    TYPE varray_sts_txt IS TABLE OF CHAR(250) INDEX BY BINARY_INTEGER;
    PROCEDURE re_STP_u(
    a_order_num IN re.nbr_order%TYPE,
    a_tnb IN varray_tnb,
    a_action_code IN varray_act_cd,
    a_status_code IN varray_sts_cd,
    a_status_txt IN varray_sts_txt);
    When I try to run a test script to test if the above STP, I get the below error:
    DECLARE
    TYPE V_TNB iS TABLE OF CHAR(10) INDEX BY BINARY_INTEGER;
    TYPE V_ACT iS TABLE OF CHAR(15) INDEX BY BINARY_INTEGER;
    TYPE V_STS iS TABLE OF CHAR(10) INDEX BY BINARY_INTEGER;
    TYPE V_TXT iS TABLE OF CHAR(250) INDEX BY BINARY_INTEGER;
    a_OrdN rehome_migration_ord.nbr_order%TYPE := '789';
    a_tnb V_TNB := V_TNB(7192340129,7192340128);
    a_ac V_ACT := V_ACT('ACT CDE','BGE CDE');
    a_sc V_STS := V_STS('INITIATED','INITIATED');
    a_st V_TXT := V_TXT('TExt for Status','status text');
    begin
    tds_upd_pkg.re_STP_u(a_OrdN,a_tnb,a_ac,a_sc,a_st);
    exception
    WHEN OTHERS THEN
    RAISE;
    end;
    ORA-06550: line 7, column 16:
    PLS-00222: no function with name 'V_TNB' exists in this scope
    ORA-06550: line 7, column 7:
    PL/SQL: Item ignored
    ORA-06550: line 8, column 15:
    PLS-00222: no function with name 'V_ACT' exists in this scope
    ORA-06550: line 8, column 6:
    PL/SQL: Item ignored
    ORA-06550: line 9, column 15:
    PLS-00222: no function with name 'V_STS' exists in this scope
    ORA-06550: line 9, column 6:
    PL/SQL: Item ignored
    ORA-06550: line 10, column 15:
    PLS-00222: no function with name 'V_TXT' exists in this scope
    ORA-06550: line 10, column 6:
    PL/SQL: Item ignored
    ORA-06550: line 12, column 44:
    PLS-00320: the declaration of the type of this expression is incomplete or
    malformed
    ORA-06550: line 12, column 1:
    PL/SQL: Statement ignored
    Can somebody look at the script and see where I am wrong.
    If I do not assign any value to the varray variables I am able to go past the above error and getting "PLS-00306: wrong number or types of arguments in call to..".

    I can't recall the exact wording Oracle uses but you are mixing the two different types of Collections that Oracle allows. One is where Oracle manages the size of the entry for you automatically. The other is where you have to .EXTEND the collection to increase the number of entries. Using "INDEX BY BINARY_INTEGER" tells Oracle to automanage the collection size. "V_TNB(7192340129,7192340128)" can only be used on those collections where you manage the size. See my modified example that doesn't error out until line 10 (a_sc) with the errors you listed. Note what I commented out on line 2, line 9, and added on lines 13 and 14 to replace line 9.
    DECLARE
      TYPE V_TNB iS TABLE OF CHAR(10); -- INDEX BY BINARY_INTEGER;
      TYPE V_ACT iS TABLE OF CHAR(15) INDEX BY BINARY_INTEGER;
      TYPE V_STS iS TABLE OF CHAR(10) INDEX BY BINARY_INTEGER;
      TYPE V_TXT iS TABLE OF CHAR(250) INDEX BY BINARY_INTEGER;
      a_OrdN VARCHAR2(3) := '789';
      a_tnb V_TNB := V_TNB(7192340129,7192340128);
      a_ac V_ACT;-- := V_ACT('ACT CDE','BGE CDE');
      a_sc V_STS := V_STS('INITIATED','INITIATED');
      a_st V_TXT := V_TXT('TExt for Status','status text');
    begin
      a_ac(1) := 'ACT CDE';
      a_ac(2) := 'BGE CDE';
      NULL;
    end;Here is the Oracle documentation I was thinking of. http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/collections.htm#sthref1153

  • How to replace a layer which has a mask applied without affecting the mask?

    I have a layer with a photo.  I have animated a mask on this layer, but now the client wants the photo replaced with another one.  When I add a new photo to a new layer and copy the mask properties from the good working layer, the mask winds up in a different place than the original.  I've tried doing a replace footage with the source photo trying to make it the new photo but same results, the mask always gets repositioned.
    How can I replace an image on a layer that has an animated mask on it with another one without affecting the mask?
    Thanks,
    Steve

    Thanks everyone.  Now that I understand more about Track Mattes it works fine.  I can scale and position new layers under the animated mask.  This helps tremendously

  • Can I import a project from laptop which has same file names as existing

    Im about to import a project from Aperture on my on-road laptop to my main Aperture library on my studio Mac when i realised that the new camera i purchased for the road trip has named the files exactly the same as some files (but different pictures) which already exist in my studio Mac. Even though they exist in different projects, what will happen if i import the new project into my main Aperture Library?

    Hi Sunspeaks;
    I just had a similar problem. Since I had my MBP on the trip, we were downloading our photos to Aperture there in projects. When I returned home I discovered we had with photos with the same names but different project names. I was able to import everything into Aperture without any trouble. For my own sanity I did a batch rename to change the photo names in Aperture after the import.
    Allan

  • Replace a file which has a specific ID with another one

    I want to replace a file with another one using JSOM, but preserving all other associated fields (like Author and other custom columns in the document library)
    How can I select the file I want to replace using the ID field?
    For example, when I update a regular List Item, I use
    this.oListItem = oList.getItemById(the_given_ID);
    oListItem.set_item('Title', value);
    How can I do that for a file?
    I want to replace the file, not to update its content!
    Thank you!

    Hi,
    Per my understanding, you might want to replace the file in a library with other associated fields preserved using JavaScript Client Object Model.
    There seems no direct way can achieve what you want, as a workaround, you can upload the new file into this library, get the values of the associated fields from a
    specific item and populate them in the current item, then delete the original file from this library.
    By doing this, the original file will be deleted, a new file with the same properties will appear with a new ID.
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • How to change computer name in win server 2012 R2???

    I am using Windows Server 2012 R2 Standard. I cannot change my computer name, which can been from Control Panel -> System -> Computer Name Could you please help me with this? I tried command below but it doesn't work netdom computername XXXX.ZZZ /add

  • TMADMIN_CAT:1607: ERROR: Unable to initialize public key subsystem

    Hi All, I have installed HCM 9 with 8.49.08 PeopleTools on CentOS 5.3 Linux. Everything went fine (I have completed the creation of database) until I am about to start the application server that I have just created. I am getting this error, "TMADMIN

  • Count files in JDeveloper

    I need to count files in all workspace. For example. I need to know how many jsp files are. Or how many .js files are. Do you know how can I do this easier?

  • Configure persistence unit in adf bindings

    How do i configure which persistence unit should be used when using ejb3 and adf? When using bc4j i can specify the bc4j configuration in DataBindings.cpx, how do i do the same for an ejb3 model?

  • Email not working after OSX 10.9 upgrade

    I upgraded my Macbook Pro to OS X 10.9. My Gmail & AOL mail work fine, however my charter email will not even pull up the login page.  Worked fine until the upgrade. Looked for an answer in the communities, but couldn't find any answers. Any ideas?