Tuesday, May 26, 2020

How to install and make a report with BI publisher in OBIEE 11G


This Document explains about the configuration of  BI Publisher in OBIEE 11g.

Contains,
   
> SERVER CONFIGURATION.

> JNDI CONNECTION FOR BI PUBLISHER.

> REGISTER THE AUDIT-STORING DATABASE TO DOMAIN.

> REGISTER AUDITING DATA SOURCE AS JNDI DATA SOURCE.

> CREATE DATA MODEL.

> CREATE REPORTS.


Server Configuration: 
  •      Login in to Oracle Business Intelligence
  •      click on the Administration Tab
  •      select BI Publisher (Manage BI Publisher)
  •       Select Server Configuration as shown in the above snapshot.
  •      Select check mark on “Enable Monitor and Audit”

Note: BI Publisher performance monitoring enables you to monitor the performance of queries, reports and document generation and to analyze the provided details. User auditing provides information about what users logged in, when, how many times, what reports they accessed, and other actions they took within the application.

  


   >  Login to Web Logic Server Administration Console.
   > Under Services, click Data Sources.


  • Click Lock and Edit button to enable editing.
  • On the Summary of JDBC Data Sources page, click New and click Generic Data Source.

Enter the following details for the new data source;
  •     Name (example: BIP_AuditDB)
  •     JNDI Name (example: jdbc/AuditDB)
  •     Database Type (example: Oracle)




>  Click Next and select the database driver (Thin XA) for Instance Connections; Versions:9.0.1 and later.
>  Enter the required connection properties like Database name, host name, port, database user name (for our exercise it’s OBI_IAU) and the password.
> Click next and accept the default setting and then click Test Configuration button as show below.

 > Click Next, Check listed servers where you want to make this JDBC connection available.






> If the connection was successful, click Activate Changes to make the changes available.




Register the Audit-Storing Database to Domain:
  • Login to Web Logic Server EM (Enterprise Manage).
  • Navigate to the Web Logic Domain, right clickbifoundation_domain, and then select Security, then Audit Store.

> Click Search Data Sources. From the Select Data Source dialog, select the data source you created and click OK


> Navigate to the Web Logic Domain, right clickbifoundation_domain, then select Security, then Audit Policy.

> The Audit Policy table displays all the audited applications under the bifoundation_domain. Set the Audit Level to Medium to enable auditing for BI Publisher.
Restart the Web Logic Servers/domain/Applications etc...
After this, now the BI Publisher should start feeding all the auditing data into the database table called ‘IAU_BASE’. Try login to BI Publisher and open a couple of reports, you should see the activity audited in the ‘IAU_BASE’ table. If not working, we might want to check the log file, which is located at BI_HOME/user_projects/domains/bifoundation_domain/servers/AdminServer/logs/AdminServer-diagnostic.log

Register Auditing Data Source as JNDI Data Source:

First thing you need to do is to register the audit data source (JNDI/JDBC connection) you created in the previous step as JNDI data source at BI Publisher. It is a JDBC connection registered as JNDI that means you don’t need to create a new JDBC connection by typing the connection URL, username/password, etc. You can just register it using the JNDI name. (E.g. jdbc/AuditDB)
   Ø  Login to BI Publisher as Administrator (e.g. Web Logic)
Ø  Go to Administration Page
Click ‘JNDI Connection’ under Data Sources and Click ‘New’
 
  •     Type Data Source Name and JNDI Name. The JNDI Name is the one you created in the Web Logic Console as the auditing data source. (e.g. jdbc/AuditDB)
  •     Click ‘Test Connection’ to make sure the data source connection works.
  •     Provide appropriate roles so that the report developers or viewers can share this data source to view reports.
  •     Click ‘Apply’ to save.


Create Data Model:





  •     Select Data Model from the tool bar menu ‘New’
  •     Set ‘Default Data Source’ to the audit JNDI data source you have created in the previous step.

       > Select your data set in the left hand pane and click on ‘SQL Query’


> Use Query Builder to build a query or just type a SQL query. Either way.
Ø  Here is sample SQL query looks like.

> Click OK and save the data model. Once saved the data model then click on XML option.

     >  Test the sample with Get XML Output and save XML to your data model.



Create Reports:

Now you can use one of the BI Publisher’s layout options to design the report layout anD visualize the auditing data. Here are some sample screenshots of my report design with Online Layout Editor.


Joomla. How to restore a website from full backup

In this tutorial you will find out how to restore your Joomla webite from a full backup.

Joomla. How to restore a website from full backup

You may check how to make a full backup for Joomla website here: Back up Joomla website.

  1. First, you should restore the files.

    1. Log into your Host Control Panel . Go to File Manager :

      Joomla_How_to_restore_a_full_backup-1

      Select all the files, click Delete button:

      Joomla_How_to_restore_a_full_backup-2

    2. Click Upload button, and upload the .zip file that you have backed up before. Then click Extract to unzip this file, so that you will have all the files back from the full backup:

      Joomla_How_to_restore_a_full_backup-3

    3. Open configuration.php to check the information of Database in order to work with the correct database. It looks like this:

      Joomla_How_to_restore_a_full_backup-4

  2. Next, restore the database.

    1. Go to phpMyAdmin:

      Joomla_How_to_restore_a_full_backup-5

      Choose the right database of the website that you have checked earlier, select all the tables and then drop them:

      Joomla_How_to_restore_a_full_backup-6

    2. Click Import tab, Browse the .sql file that you had backed up before. Then click Go to start importing:

      Joomla_How_to_restore_a_full_backup-7

  3. Refresh your site to see that we get the full backup.

Feel free to check the detailed video tutorial below:

Wednesday, May 13, 2020

How do i backup and restore oracle database without RMAN utility step by step

Summary: Hi! We know that there is different type of backup utility of oracle database. In this tutorial you will learn how to export and import an oracle database without RMAN using OS command prompt or PLSQL. You can use any one.


           First of all we should take a backup of our database

 Then stop all running application like web logic server, business intelligent etc.

      Go to run and open command prompt by cmd. then change the path as below to which is your database home directory path.

            C:\Users\Administrator> D: app\Administrator\product\11.2.0\dbhome_1\BIN\

Now execute below command to take a backup

 D:\app\Administrator\product\11.2.0\dbhome_1\BIN>expdp ucbcap/password@bdfc directory=ucbcap_dir dumpfile=thisisnameofbackup.dmp schemas=ucbcapl

ucbcap = user,password =user password,@bdfc=instance , ucbcap=home directory, ucbcap=schema name

Output sample is below. We mentioned some rows to clear concept.

;;;

Export: Release 11.2.0.1.0 - Production on Sun May 10 23:44:53 2020

 

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

;;;

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the Partitioning, Oracle Label Security, OLAP, Data Mining,

Oracle Database Vault and Real Application Testing options

Starting "UCBCAP"."SYS_EXPORT_SCHEMA_50":  UCBCAP/********@ilcl directory=ucbcap_dir dumpfile=thisisfilename.dmp schemas=UCBCAP

Estimate in progress using BLOCKS method...

Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA

Total estimation using BLOCKS method: 1.344 GB

Processing object type SCHEMA_EXPORT/USER

Processing object type SCHEMA_EXPORT/SYSTEM_GRANT

Processing object type SCHEMA_EXPORT/ROLE_GRANT

Processing object type SCHEMA_EXPORT/DEFAULT_ROLE

Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA

|

Dump file set for UCBCAPL.SYS_EXPORT_SCHEMA_50 is:

  D:\ORACLEDB\UCBCAP_BASE\ADMIN\BDFC\DPDUMP\DUMP\thisisfilename.DMP

Job "UCBCAP"."SYS_EXPORT_SCHEMA_50" successfully completed at 23:47:42

 

After complete the process the backup file will be store to the following path

 

        D:\oracledb\ucbcap_base\admin\ucbcapl\dpdump\dump (check out the path according to your instance.)

     Now, we will do the following tasks to restore the backup database.


Login as sysdba user to sysdba. We are using PLSQL to drop and create user and assign the previledge to user etc. noted you can use any one like SQL plus, SQL developer, plsql


After login execute the following commands

 

drop user ucbcap cascade;

drop user ucbcap$LOG cascade;


create user ucbcap identified by (your password) default tablespace UCBCAP_SYSTEM_TS;

grant dba to ucbcap;

grant execute on DBMS_LOCK to ucbcap;

grant execute on DBMS_crypto to ucbcap;

ALTER PROFILE "DEFAULT" LIMIT PASSWORD_LIFE_TIME UNLIMITED;

ALTER PROFILE "DEFAULT" LIMIT FAILED_LOGIN_ATTEMPTS UNLIMITED;


Go to RUN again and open command prompt by cmd. then change the path as earlier to which is path of home directory and get to the BIN folder absolutely.

            C:\Users\Administrator> D: app\Administrator\product\11.2.0\dbhome_1\BIN\

Now execute the command.

      D:\app\Administrator\product\11.2.0\dbhome_1\BIN>impdp ucbcap/password@bdfc directory=UCBCAP_DIR dumpfile=thisisfilenameofbackup.DMP       schemas=ucbcapl remap_schema=ucbcapl:ucbcap

Note:  ucbcap = user,password =user password,@bdfc=instance , ucbcap=home directory, ucbcapl=schema name

Output sample is below. All data will be import one by one. Here, we mentioned some rows that are just to clear concept. it take a minimum time to complete the process

;;;

Import: Release 11.2.0.1.0 - Production on Wed Mar 25 15:52:41 2020

 

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

;;;

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

With the Partitioning, Oracle Label Security, OLAP, Data Mining,

Oracle Database Vault and Real Application Testing options

Master table "UCBCAP"."SYS_IMPORT_SCHEMA_01" successfully loaded/unloaded

Starting "UCBCAP"."SYS_IMPORT_SCHEMA_01":  ucbcap/********@bdfc directory=UCBCAP_DIR dumpfile=UCBCAPL_LIVE2020_03_25_14_47_26.DMP schemas=ucbcapl remap_schema=ucbcapl:ucbcap

Processing object type SCHEMA_EXPORT/USER

ORA-31684: Object type USER:"ucbcap" already exists

Processing object type SCHEMA_EXPORT/SYSTEM_GRANT

Processing object type SCHEMA_EXPORT/ROLE_GRANT

Processing object type SCHEMA_EXPORT/DEFAULT_ROLE

Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA

Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA

Processing object type SCHEMA_EXPORT/SYNONYM/SYNONYM

Processing object type SCHEMA_EXPORT/TYPE/TYPE_SPEC

Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE

Processing object type SCHEMA_EXPORT/TABLE/TABLE

Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA

. . imported "UCBCAP"."INSTRUMENT_BALANCE_HIST"        358.1 MB 5296187 rows

. . imported "UCBCAP"."PS_TXN"                         140.9 MB   18120 rows

. . imported "UCBCAP"."IMPORT_EXT_FILES"               99.28 MB    4483 rows

. . imported "UCBCAP"."GL_MASTER_HIST"                 63.12 MB  996988 rows


Login as alpha_live database



Execute reverse and take a time to complete it.

begin pkg_sys_log.create_log_schema; end;

Restoration done.  Run all application and check now. If you show any error mention to the comments please.