SQL for data dictionary report

Hi, anyone know what SQL I would need to run to to get a basic data dictionary listing? ie I'd like to know:
table_name, column_name, column_type, length, precision, nullable etc
Also a nested sub-query to get each tables constraints, indexes etc
Thanks,
Andrew

The tables you'll need are user_table, user_tab_columns, user_indexes, user_ind_columns (maybe user_ind_expressions to if you use function based indexes), user_constraints and user_cons_columns.
Personally, I find that calling DBMS_METADATA.GET_DDL for the object(s) is easier most of the time.

Similar Messages

  • New To SQL Developer Data Modeler - Data Dictionary Report

    I am new to Data Modeler and I am currently learning what I can do and can't with it. Is there a way to generate a "Data Dictionary" report? We would like a report we can distribute that describes all tables and columns with descriptions and comments. We used to use an old version of Power Designer and we could do this from the data model we created. Is it possible to do something like this from SQL Developer Datas Modeler?

    Hi,
    Saxon is just an option, you don't need it by default.
    Could be permissions problem. What are you working on i.e. OS? What java version do you use?
    Even though you have specified directory for the reports do you have permissions to write there?
    Report generation directories priority is:
    1. Custom directory if specified in Settings->Data Modeler->Default Reports Directory
    2. /datamodeler/reports/
    3. User home directory
    You must have permissions somewhere on these directories. On the other hand you are saying that report_data.xml is generated so you have permissions.
    Okay. Now I saw a bug in 710. When you click "Generate report" there are progress dialogs and result dialog, but if you meanwhile click somewhere or change focus, these dialogs are hiding below main "Reports" dialog i.e. you are not seeing them. If you use Alt+Tab the result dialog will popup. This bug is fixed in the next release.
    So you must see either result dialog or error dialog at the end of report generation. If not check with Alt+Tab if it is not hidden somewhere below and if there is no such dialog close the DataModeler and check the log file for some error.
    There is SQL Developer Data Modeler 3.3 Early Adopter Available.
    http://www.oracle.com/technetwork/developer-tools/datamodeler/downloads/datamodeler-33-ea-1869055.html
    Above issue is fixed there and report is opening automatically.
    Edited by: Dimitar Slavov on Nov 29, 2012 11:53 PM

  • Windows are weired in Reports- Data Dictionary Reports- PL/SQL- .......

    When I go to Reports->Data Dictionary Reports-> PL/SQL->Search Source Code I get a window where I can not enter anything and moreover nothing is clearly visible.
    Also same is happening for option Reports->Data Dictionary Reports-> PL/SQL->Progam Unit Arguments.

    The parameters default to NULL (the NULL check box is ticked) - to be able to enter a value, you need to first uncheck the NULL check box. You get the same thing with bind variables when running statements in the SQL Worksheet.
    I think it would be much better if typing anything into the parameter value field automatically deselected the NULL, but it doesn't do that.

  • "Oracle SQL Developer Data Modeler reporting repository required"

    Hi all,
    Trying to make use of Data Modeler Reports from within SQL Dev EA 2.1, but every time I try to connect to a DB I get the following message "Oracle SQL Developer Data Modeler reporting repository required."
    Any idea how to go about sorting this out?
    Thanks

    Hi i have the Oracle SQL Developer Data Modeler version 2.0.0 installed.
    When i try to export one diagram to the reporting schema, i get the following error : "Error occurred while exporting to Reporting Schema.See the log file for details".
    The log file has no errors.
    The repository owner is DBA.
    The connection is ok.
    Can you help me?
    Thanks in advance
    Paolo.

  • SQL Developer Data Modeler  "Reports"  Duplicate Columns in Index- Bug

    I am using SQL Data Modeler of SQL Developer - 3.2.20.09
    Problem Description:
    In the "Indexes" section of report generated for a table, column appear twice.
    Steps to Reproduce:
    1. Create an Entity in Modeler: COMPANY, Add attributes COMP_ID and COMP_DESC to it, mark COMP_ID as PK
    2. Engineer it to Relational Model
    3. Go to 'File->Data Modeler->Reports'
    4. Select 'Available reports' = 'Table' and press 'Generate Report'
    5. View the report.
    Indexes shown for the table contains duplicate columns for COMP_ID
    Regards,

    Hi
    I've just tested with SQL Developer 3.2.20.09 and built in Data Modeler 3.1.4.710 with Data Modeler reports 11.2.0.09.87
    There is no duplicate columns for COMP_ID in the report.
    What are your versions? You can check them from Tools->Preferences->Extensions

  • Batch input in ECC 6.0 for data collation reports?

    Hello all,
    Is anyone using IS-OIL (OGSD) in ECC6.0? I have heard that the technology for posting data collation reports is no longer based on batch input technology but I couldn't find any information on it, neither in the release notes. Does anyone know whether this is true?
    Kind regards,
    Klemens

    Hi Satya,
    Still I am getting  the same error. I am using IE 7.0 browser. In my service I have the following parameters in SE80 as well as in the SAP GUI Config in SICF.
    ~ITSMOBILE 1
    ~THEME 99
    ~TRANSACTION LM00
    I have published the complete service and it published successfully to INTERNAL site.
    My custom service is active in SICF.
    When I test the service, IE can not display the page.
    Do we need to activate any other standard service?
    Or Do we need to set some additional parameters to the service?
    Do I need to make any special settings in the IE 7.0?
    Your input will be highly appreciated.
    Regards,
    Subbu

  • Data Modeler EA1:  Importing SQL Server Data Dictionary issue

    I am using the Data Dictionary Import Wizard to import the Schema of a SQL Server 2005 database (JDBC connection has "SQL Server 2005" as the Type) into the Oracle SQL Developer Data Modeler. In step 4 of the import, under the "Import to:" section, there is only SQL Server 2000 available in the drop down.

    Database Name: Microsoft SQL Server
    Database Version 10.00.2531
    I assumed that a SQL Server 2008 DB would be handled as a SQL Server 2005 DB (that is until 2008 is supported). Currently the db is not using any SQL Server 2008 specific features.
    In Oracle Developer Data Model 2, the tables with xml data type would not import. This time, those tables did import.

  • How to see pure SQL for a Bex Report

    Hi All,
    I need to do troubleshooting on a report and I need to have the pure SQL code of the Bex report. Is there any easy way to get the SQL code for a bex report?
    I appreciate any help with points,
    Regards,

    Hi Mike.
    Try TA RSRT -> Execute and debug -> Display SQL/BIA query.
    Hope it helps.
    BR
    Stefan

  • Re: SQL for Gross profit Report by Customer between posting date parameters

    Hi,
    im new to SAP Forum, and have been provided with a task to provide the above referenced report.
    The problem is that i am completely new to SAP and its 'T0. ' classification on headers in SQL.
    So firstly, what does T0 stand for?
    Secondly - would anyone have an idea about how i may go about producing a report which details the Gross Profit earned by Customer by Period?

    Hi,
    We use T0,T1 etc for tables alias name.
    Select t0.docnum from ordr t0
    here t0 is the alias name for table "ORDR"
    Check below link.
    http://www.w3schools.com/sql/sql_alias.asp
    Regards
    Deepak tyagi

  • Formula variable for date in report

    Hi All,
    I have to display the last date value of a particular date in the report.
    For a better understanding,
    I have Customer, Equipment, Service date, Amount
    In the report, I have to display
    Customer, Equipment, Last Service date, Last Service Amount.
    I have created a formula variable (Formula variable for Service date) for Service date with Replacement path.
    Replace Variable with Infoobject, Replace with Key, Dimension dates.
    And in Key figures, I have created a formula (Last Service date) with Last value in the Aggregation using the "Formula variable for Service date".
    The Last Service date is displayed as 'X' in the report since the Service date is not in the row. I cannot have the service date in the row either (not even by hiding the display).
    Kindly tell me how to rectify this problem.
    Thanks and Regards
    Adhira Anand.

    The X is appearing because, with the drill downs you have added, you have more than 1 date value to choose from when you attempt to aggregate.
    Have you tried using APD instead of exception aggregation?
    Have you built the exception aggregation calculated key figure globally or just locally (i.e. as a structure element)? It must be built globally to work properly.

  • SQL for dates output

    SQL pasted below is expected to return dates output in format shown,
    with weekday begining 'MONDAY'. The SQL can be ran by creating
    a dummy table 'CAL_MONTHS' with one number column with around 200 null rows.
    The SQL I have written works fine up to the month and week level but it gets
    messed up when trying to print the dates/days for the particular week.
    I would greatly appreciate any help.
    OUTPUT format I am trying to get:
    Month: JAN-2007
    ================
    Week NO. 1
    Week-Day Date Day
    Monday 1/1 01-JAN-07 01
    Tuesday 2/1 02-JAN-07 02
    Wednesday 3/1 03-JAN-07 03
    Thursday 4/1 04-JAN-07 04
    Friday 5/1 05-JAN-07 05
    Saturday 6/1 06-JAN-07 06
    Sunday 7/1 07-JAN-07 07
    Week NO. 2
    Week-Day Date Day
    Monday 8/1 08-JAN-07 08
    Tuesday 9/1 09-JAN-07 09
    Wednesday 10/1 10-JAN-07 10
    Thursday 11/1 11-JAN-07 11
    Friday 12/1 12-JAN-07 12
    Saturday 13/1 13-JAN-07 13
    Sunday 14/1 14-JAN-07 14 AND SO ON........
    Week NO. 3
    Week-Day Date Day
    Week NO. 4
    Week-Day Date Day
    Week NO. 5
    Week-Day Date Day
    Following is the SQL
    set serveroutput on
    begin
    for xx in(
    SELECT months v_months, to_date('01-'||months,'DD-MON-YYYY') v_dt
    FROM ( SELECT distinct TO_CHAR(days,'MON-YYYY') months
    FROM (SELECT to_date('01/01/2007','dd/mm/yyyy') + (ROWNUM-1) days
    FROM cal_months
    WHERE ROWNUM <= to_number(to_date('01/03/2007','dd/mm/yyyy') - to_date('01/01/2007','dd/mm/yyyy')) +1)
    ORDER BY to_date('01-'||months,'DD-MON-YYYY')) loop
    dbms_output.put_line(chr(10));
    dbms_output.put_line('Month: '||xx.v_months);
    dbms_output.put_line(' ================ ');
    for xy in(
    SELECT distinct
    TO_CHAR(TO_DATE(ROWNUM||'-'||xx.v_months,'DD-MON-YYYY') ,'IW') -
    TO_CHAR(TRUNC(TO_DATE(ROWNUM||'-'||xx.v_months,'DD-MON-YYYY') ,'MM'),'IW')+1 week_no
    FROM cal_months
    WHERE ROWNUM <= TO_CHAR(LAST_DAY(TO_DATE('01-'||xx.v_months,'DD-MON-YYYY')),'DD')) loop
    --dbms_output.put_line(chr(10));
    dbms_output.put_line(' Week NO. '||xy.week_no);
    dbms_output.put_line(' ---------- ');
    dbms_output.put_line(' Week-Day Date Day');
    dbms_output.put_line(' ------------------------------------------ ');
    for zz in(
    SELECT
    TO_CHAR((TO_DATE('01-'||xx.v_months,'DD-MON-YYYY') -
    DECODE(TO_CHAR(TO_DATE('01-'||xx.v_months,'DD-MON-YYYY'),'Dy'),
    TO_CHAR(TO_DATE('01-JAN-2007','DD-MON-YYYY'),'Dy'), 0,
    TO_CHAR(TO_DATE('02-JAN-2007','DD-MON-YYYY'),'Dy'), 1,
    TO_CHAR(TO_DATE('03-JAN-2007','DD-MON-YYYY'),'Dy'), 2,
    TO_CHAR(TO_DATE('04-JAN-2007','DD-MON-YYYY'),'Dy'), 3,
    TO_CHAR(TO_DATE('05-JAN-2007','DD-MON-YYYY'),'Dy'), 4,
    TO_CHAR(TO_DATE('06-JAN-2007','DD-MON-YYYY'),'Dy'),5,
    TO_CHAR(TO_DATE('07-JAN-2007','DD-MON-YYYY'),'Dy'), 6)) + (ROWNUM-1) ,'FMDay dd/mm') datee,
    '' day, to_date('') the_date
    FROM cal_months
    WHERE ROWNUM <= DECODE(TO_CHAR(TO_DATE('01-'||xx.v_months,'DD-MON-YYYY'),'Dy'),
    TO_CHAR(TO_DATE('01-JAN-2007','DD-MON-YYYY'),'Dy'), 0,
    TO_CHAR(TO_DATE('02-JAN-2007','DD-MON-YYYY'),'Dy'), 1,
    TO_CHAR(TO_DATE('03-JAN-2007','DD-MON-YYYY'),'Dy'), 2,
    TO_CHAR(TO_DATE('04-JAN-2007','DD-MON-YYYY'),'Dy'), 3,
    TO_CHAR(TO_DATE('05-JAN-2007','DD-MON-YYYY'),'Dy'), 4,
    TO_CHAR(TO_DATE('06-JAN-2007','DD-MON-YYYY'),'Dy'),5,
    TO_CHAR(TO_DATE('07-JAN-2007','DD-MON-YYYY'),'Dy'),6)
    UNION ALL
    SELECT
    TO_CHAR(TO_DATE(ROWNUM||'-'||xx.v_months,'DD-MON-YYYY'),'FMDay dd/mm') datee,
    TO_CHAR(TO_DATE(ROWNUM||'-'||xx.v_months,'DD-MON-YYYY'),'dd') day,
    TO_DATE(ROWNUM||'-'||xx.v_months,'DD-MON-YYYY') the_date
    FROM cal_months
    WHERE
    ROWNUM <= TO_CHAR(LAST_DAY(TO_DATE('01-'||xx.v_months,'DD-MON-YYYY')),'DD')
    and
    TO_CHAR(TO_DATE('01-'||xx.v_months,'DD-MON-YYYY'),'MON-YYYY') = xx.v_months
    and
    TO_CHAR(TO_DATE(ROWNUM||'-'||xx.v_months,'DD-MON-YYYY') ,'IW') -
    TO_CHAR(TRUNC(TO_DATE(ROWNUM||'-'||xx.v_months,'DD-MON-YYYY') ,'MM'),'IW')+1 = xy.week_no
    ) loop
    dbms_output.put_line(zz.datee||' '||zz.the_date||' '||zz.day); end loop;
    end loop;
    end loop;
    end;

    Try that:
    With weeks of month
    declare
    vyear number:=2007;
    vmes number := 9;
    vdays number;
    week_day number:=0;
    num_day number:=0;
    fx date;
    begin
    vdays := to_char(last_day(to_date(vmes, 'mm')), 'dd');
    dbms_output.put_line(to_char(to_date(vmes, 'mm'), 'Mon') || '-' || vyear);
    for j in 1..vdays loop
         fx := to_date(lpad(j,2,0) || lpad(vmes,2,0) || vyear, 'ddmmyyyy');
    if to_char(fx, 'w')!= week_day then
         week_day := to_char(fx, 'w');
         dbms_output.put_line('Week No.'|| week_day);
         dbms_output.put_line('-----------');          
         dbms_output.put_line('Week_Day     Date     Day');
         dbms_output.put_line('---------------------------');
    end if;
         num_day := to_char(fx, 'd');
         dbms_output.put_line(
              to_char(fx, 'Day') || chr(9) ||
              to_char(fx, 'dd/mm') || chr(9) ||
              to_char(fx, 'dd-Mon-yy') || chr(9) ||
              to_char(fx, 'dd')
    end loop;
    end;
    Sep-2007
    Week No.1
    Week_Day Date Day
    Saturday 01/09 01-Sep-07 01
    Sunday 02/09 02-Sep-07 02
    Monday 03/09 03-Sep-07 03
    Tuesday 04/09 04-Sep-07 04
    Wednesday 05/09 05-Sep-07 05
    Thursday 06/09 06-Sep-07 06
    Friday 07/09 07-Sep-07 07
    Week No.2
    Week_Day Date Day
    Saturday 08/09 08-Sep-07 08
    Sunday 09/09 09-Sep-07 09
    Monday 10/09 10-Sep-07 10
    Tuesday 11/09 11-Sep-07 11
    Wednesday 12/09 12-Sep-07 12
    Thursday 13/09 13-Sep-07 13
    Friday 14/09 14-Sep-07 14
    Week No.3
    Week_Day Date Day
    Saturday 15/09 15-Sep-07 15
    Sunday 16/09 16-Sep-07 16
    Monday 17/09 17-Sep-07 17
    Tuesday 18/09 18-Sep-07 18
    Wednesday 19/09 19-Sep-07 19
    Thursday 20/09 20-Sep-07 20
    Friday 21/09 21-Sep-07 21
    Week No.4
    Week_Day Date Day
    Saturday 22/09 22-Sep-07 22
    Sunday 23/09 23-Sep-07 23
    Monday 24/09 24-Sep-07 24
    Tuesday 25/09 25-Sep-07 25
    Wednesday 26/09 26-Sep-07 26
    Thursday 27/09 27-Sep-07 27
    Friday 28/09 28-Sep-07 28
    Week No.5
    Week_Day Date Day
    Saturday 29/09 29-Sep-07 29
    Sunday 30/09 30-Sep-07 30
    With weeks of years
    declare
    vyear number:=2007;
    vmes number := 9;
    vdays number;
    week_day number:=0;
    num_day number:=0;
    fx date;
    begin
    vdays := to_char(last_day(to_date(vmes, 'mm')), 'dd');
    dbms_output.put_line(to_char(to_date(vmes, 'mm'), 'Mon') || '-' || vyear);
    for j in 1..vdays loop
         fx := to_date(lpad(j,2,0) || lpad(vmes,2,0) || vyear, 'ddmmyyyy');
    if to_char(fx, 'ww')!= week_day then
         week_day := to_char(fx, 'ww');
         dbms_output.put_line('Week No.'|| week_day);
         dbms_output.put_line('-----------');          
         dbms_output.put_line('Week_Day     Date     Day');
         dbms_output.put_line('---------------------------');
    end if;
         num_day := to_char(fx, 'd');
         dbms_output.put_line(
              to_char(fx, 'Day') || chr(9) ||
              to_char(fx, 'dd/mm') || chr(9) ||
              to_char(fx, 'dd-Mon-yy') || chr(9) ||
              to_char(fx, 'dd')
    end loop;
    end;
    Sep-2007
    Week No.35
    Week_Day Date Day
    Saturday 01/09 01-Sep-07 01
    Sunday 02/09 02-Sep-07 02
    Week No.36
    Week_Day Date Day
    Monday 03/09 03-Sep-07 03
    Tuesday 04/09 04-Sep-07 04
    Wednesday 05/09 05-Sep-07 05
    Thursday 06/09 06-Sep-07 06
    Friday 07/09 07-Sep-07 07
    Saturday 08/09 08-Sep-07 08
    Sunday 09/09 09-Sep-07 09
    Week No.37
    Week_Day Date Day
    Monday 10/09 10-Sep-07 10
    Tuesday 11/09 11-Sep-07 11
    Wednesday 12/09 12-Sep-07 12
    Thursday 13/09 13-Sep-07 13
    Friday 14/09 14-Sep-07 14
    Saturday 15/09 15-Sep-07 15
    Sunday 16/09 16-Sep-07 16
    Week No.38
    Week_Day Date Day
    Monday 17/09 17-Sep-07 17
    Tuesday 18/09 18-Sep-07 18
    Wednesday 19/09 19-Sep-07 19
    Thursday 20/09 20-Sep-07 20
    Friday 21/09 21-Sep-07 21
    Saturday 22/09 22-Sep-07 22
    Sunday 23/09 23-Sep-07 23
    Week No.39
    Week_Day Date Day
    Monday 24/09 24-Sep-07 24
    Tuesday 25/09 25-Sep-07 25
    Wednesday 26/09 26-Sep-07 26
    Thursday 27/09 27-Sep-07 27
    Friday 28/09 28-Sep-07 28
    Saturday 29/09 29-Sep-07 29
    Sunday 30/09 30-Sep-07 30

  • ORA-00933 - Error in PL/SQL for Form with report.

    Hello,
    I am getting this error :
    failed to parse SQL query:
    ORA-00933: SQL command not properly ended
    and my PL/SQL function body returning SQL is as follows:
    Declare
    q varchar2(32767);
    w varchar2(4000);
    v_total varchar2(10);
    Begin
    v_total:='TOTAL' ;
    q:=' SELECT ASR_DB_CLIENT.CLIENT_NAME, ';
    q:=q||' ASR_DB_OIS.ACCT_NAME, ';
    q:=q||' ASR_DB_OIS.ACCT_NBR, ';
    q:=q||' ASR_DB_OIS.INCEPT_DT, ';
    q:=q||' asr_db_prod.MKT_CODE, ';
    q:=q||' asr_db_prod.asst_clss, ';
    q:=q||' ASR_DB_OIS.PROD_CODE, ';
    q:=q||' ASR_DB_OIS.GROUP_CODE, ';
    q:=q||' ASR_DB_PLAN.TAX_STAT, ';
    q:=q||' asr_db_clnt_type.clnt_type_name, ';
    q:=q||' asr_db_plan_type.plan_type_name, ';
    q:=q||' ASR_DB_OIS.ACCT_type, ';
    q:=q||' ASR_DB_PLAN.CNTRY_CODE, ';
    q:=q||' ASR_DB_OIS.DISCRET_FLAG, ';
    q:=q||' ASR_DB_OIS.ASST_BAL ';
    q:=q||' FROM ASR_DB_OIS, ASR_DB_PLAN, ASR_DB_CLIENT, ASR_DB_PROD, ';
    q:=q||' asr_db_plan_type, ';
    q:=q||' asr_db_Clnt_type ';
    q:=q||' WHERE';
    q:=q||' ASR_DB_OIS.PLAN_ID = ASR_DB_PLAN.PLAN_ID and ';
    q:=q||' ASR_DB_OIS.as_of_dt = ASR_DB_PLAN.as_of_dt and ';
    q:=q||' ASR_DB_PLAN.CLIENT_ID = ASR_DB_CLIENT.CLIENT_ID and ';
    q:=q||' ASR_DB_OIS.as_of_dt = ASR_DB_CLIENT.as_of_dt and ';
    q:=q||' asr_db_ois.prod_code = asr_db_prod.prod_code and ';
    q:=q||' ASR_DB_PLAN.plan_type_code = ASR_DB_PLAN_type.plan_type_code and ';
    q:=q||' ASR_DB_Client.clnt_type_code = ASR_DB_clnt_type.clnt_type_code and ';
    q:=q||' ASR_DB_OIS.AS_OF_DT = :p99_asofdate ';
    IF :P2_ROLLUPSLEEVE = 'RU'
    THEN
    q :=q||' and ASR_DB_OIS.PARENT_OIS_ID is null ';
    Else
    q :=q||' and ASR_DB_OIS.ACCT_TYPE like "%"'||v_total||'"%" ';
    q :=q||' and ASR_DB_OIS.PARENT_OIS_ID is not null ';
    END IF;
    return q;
    end;
    Why this is failing ?
    Is "%"'||v_total||'"%" '; incorrect ?
    P2_ROLLUPSLEEVE is a radio button.
    Please advise....
    Thanks,
    HM

    And
    Also, I get the following error when I try few other things like
    q :=q||' and ASR_DB_OIS.ACCT_TYPE = '||v_total||' ';
    or
    q :=q||' and ASR_DB_OIS.ACCT_TYPE = "||v_total||" ';
    failed to parse SQL query:
    ORA-00904: "TOTAL": invalid identifier
    And
    ORA-06550: line 43, column 41: PLS-00103: Encountered the symbol "TOTAL" when expecting one of the following: * & = - + ; < / > at in is mod remainder not rem <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKEC_ between || member SUBMULTISET_ The symbol "* was inserted before "TOTAL" to continue.
    When I try
    q :=q||' and ASR_DB_OIS.ACCT_TYPE = "'TOTAL'" ';
    Any helpful tips will be much appreciated.
    Thanks,
    HM

  • Edit SQL for Infoprovider report

    Hi,
    i have a small question, since i never interfaced the BO XI 3.1 with SAP BW. Can we edit the SQL for the webi report created on the SAP Infoprovider (say for example : InfoCube - cube1).
    Regards,
    Siva

    Hi Siva,
    No you can not!
    When you create a webi report based on a SAP BW cube there is no SQL generated, but an MDX statement. Currently it is not even possible to view the MDX statement on the BO side. You need to put a trace on it on the SAP BW side.
    Regards,
    Harry

  • How to run sql scripts using batch file for a web dynpro data dictionary

    Hi,
    I want to develop a sql script to be executed on the server alongwith the installation of a product to pre-populate web dynpro data dictionary tables required for the application.
    I further require to make the scripts independent of the database name,so that it can be run at any client environment.
    Your help will be appreciated and rewarded.

    See shoblock's answer
    call sql script from unix
    masterfile.sql:
    @file1 &1
    @file2 &2
    @file3 &3
    @file4 &4
    then just call the master script:
    sqlplus userid/password @masterfile <p1> <p2> <p3> <p4>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Lync monitoring Details reports are not getting opened, Getting SQL error like "Cannot impersonate user for data source 'CDRDB"

    Hi,
         Two month before, We have deployed Lync 13 set up with lync monitoring and archiving service enabled. After configuring we have the Lync monitoring and archiving services are working fine... few weeks back I have changed the Admin Password
    of the Lync Setup. After that Lync Monitoring and Archiving services are not working.
    when I try open Lync monitoring service from web UI, 
    http://localhost/ReportServer_LyncMonitoring/
    Web UI is opening but Reports home page is not Accessible , Getting error Like
    "An error has occurred during report processing. (rsProcessingAborted)
    Cannot impersonate user for data source 'CDRDB'. (rsErrorImpersonatingUser)
    Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
    The user name or password is incorrect"
    Please help me to trouble shoot this problem.
    Thanks,
    Rajarajan.D

    Hi Rajarajan.D
    You probably need to update the password against the CDRDB datasource in SSRS Report manager, take a look at this article: http://lyncme.co.uk/microsoft-lync-server-2013/cannot-impersonate-user-for-data-source-cdrdb-rserrorimpersonatinguser-error/
    If this helped you please click "Vote As Helpful" if it answered your question please click "Mark As Answer"
    Georg Thomas | Lync MVP
    Blog www.lynced.com.au | Twitter
    @georgathomas
    Lync Edge Port Check (Beta)
    This forum post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Maybe you are looking for