By default , when we setup enterprise Manager database console(dbconsole), 1158 port will be configured. But we can change this port easily using emca utility. In the below example, we will change the port from 1158 to 7100 1. Check the current dbconsole details: ./emctl status dbconsole Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0 […]
DATABASE
How to generate AWR report in oracle
The Automatic Workload Repository (AWR) collects and maintains statistics of the database. We can generate awr report for a particular time frame in the past using the script awrrpt.sql ( located under $ORACLE_HOME/rdbms/admin) script – @$ORACLE_HOME/rdbms/admin/awrrpt.sql conn / as sysdba SQL> @$ORACLE_HOME/rdbms/admin/awrrpt.sql Specify the Report Type ~~~~~~~~~~~~~~~~~~~~~~~ AWR reports can be generated in the following […]
Compile Invalid objects in oracle
Objects in the database can become invalid, if there are any changes to the dependent objects. Even patch and upgrade can also make the object invalid. Compiling the invalid objects can make them valid if they are eligible. Below is the query to find the invalid objects currently present in the database. set pagesize […]
Load data from excel sheet to oracle table
In this article, we will explain different methods to load data from excel sheet into Oracle database. Below are the methods that can be used. SQL DEVELOPER SQLCL utility TOAD SQLLOADER Here we will explain how to do this with SQL developer and SQLCL utility. USING SQLDEVELOPER TOOL: SQL developer is a free tool […]
Force logging in oracle
What is force logging: If force logging is enabled, all the database changes will be logged in redo log files, even for nologging operations.The above means that if FORCE LOGGING is enabled at a higher level, the NOLOGGING at a lower level has no effect. That means that even for a nologging table redo information […]
resumable_timeout parameter in oracle database
resumable_timeout is an initialization parameter introduced in Oracle 9i. This parameter defines the duration in seconds, for which the statements will be suspended if there is no space available in the tablespace for that operation. Once we add space to that tablespace, those transactions will resume their operation. Let’s see the below example: SQL> show […]
Schedule expdp job in dbms_scheduler
We usually schedule expdp jobs in a standard shell script. But the same can be achieved using dbms_scheduler utility also. Below are steps for scheduling expdp job. Here we will schedule a full expdp backup of the database, which will run daily at 11:30 HRS. 1. First, prepare the parfile cat expdp_tab.par userid=system/oracle dumpfile=FULL_DB.dmp logfile=FULL_DB.log […]
Scheduler jobs in oracle
To schedule a job at a particular time in the database, first we need to create a schedule, then a program and then job. 1. Create a schedule A schedule defines the start date, end time and repeat interval details BEGIN DBMS_SCHEDULER.CREATE_SCHEDULE ( Schedule_name => ‘DAILYBILLINGJOB’, Start_date => SYSTIMESTAMP, Repeat_interval =>’FREQ=DAILY;BYHOUR=11; BYMINUTE=30′, Comments => ‘DAILY […]
User Management in Oracle
User is basically used to connect to database. All db objects like table,index,view etc can be created under that user.In Oracle, users and schemas are essentially the same thing. You can consider that a user is the account you use to connect to a database, and a schema is the set of objects (tables, views, […]
Tablespace Management in oracle
What is a tablespace and datafile: Tablespace is the primary logic structure of the oracle database. It consists of one or more physical datafiles. Datafiles physical stores database data in storage.(DISKS) . So when we create a datafile of 30G in database, it will eat 30G of space from defined storage. All the table or […]