5 thoughts on “Configuration Baseline Collector Script For Linux OS & Oracle Databases”

  1. Hi Adel,

    I am getting similar errors when i execute the script.

    INSTANCE INFO:
    ^^^^^^^^^^^^^
    select INST_ID,instance_name INS_NAME,STATUS,DATABASE_STATUS DB_STATUS,VERSION,INSTANCE_ROLE,LOGINS,BLOCKED,to_char(STARTUP_TIME,"DD-MON-YY HH24:MI:SS") STARTUP_TIME from gv$instance
    *
    ERROR at line 1:
    ORA-00904: "DD-MON-YY HH24:MI:SS": invalid identifier

    I am not sure whats wrong with it. Any help regarding it

  2. Hi Zeeshan,
    Actually I don't think this format with double quotation mark is included in this script! may be you need to download it again.
    But it's obvious that the double quotation mark " need to be replaced with single quotation mark '

    select INST_ID,instance_name INS_NAME,STATUS,DATABASE_STATUS DB_STATUS,VERSION,INSTANCE_ROLE,LOGINS,BLOCKED,to_char(STARTUP_TIME,'DD-MON-YY HH24:MI:SS') STARTUP_TIME from gv$instance;

  3. Hi Adel,

    I guess this is something to do with the solaris vs linux. Your script is for linux environment. The actual queries in yoru script are correct with single quotes but when they are executed on solaris platform they are executed as double quotes. Wonder if you have a solaris environment that you can test them on.

    Thanks
    Zee

  4. Thank you Zee for your comment. Actually I don't have a Solaris environment to test the script on, but I'm sure it will throw out errors if it runs on Unix platforms, especially the OS configuration baseline part. It's not easy to run a full cycle of test to get the script compatible with Solaris, mentioning in the post a short clause like "the script was tested on Linux Redhat & Oracle" took me too much time of testing on various Linux platforms and versions, I wish I could have it work on all environments but the lack of time is a major constraint on doing so!.

Leave a Reply

Your email address will not be published. Required fields are marked *