Installing Oracle on RHEL requires some necessary packages, such as binutils compat-db compat-libstdc++-33 control-center gcc gcc-c++ glibc, and so on. If one of the outfit, really very troublesome, fortunately with Yum and oracle-validated:
1
ORACLE interview Questions-Technical articles
1. Explain the different points of cold and hot backup and their advantages
Answer: Hot-backed databases for archive mode, backed up while the database is still working. A cold backup is a database
Four ways to start Oracle databases
1, Startup Nomount
Non-installation startup: This way to launch executable: Rebuild the control file, rebuild the database, start the instance, that is, start the SGA and background processes, this startup
Select ' Exec dbms_stats.unlock_table_stats (' | | | ') Username ' ' | | | table_name| | ""); From User_tablesReplace the username with the user who exported the source database.Copy the results of the above query and execute it in the username
See an article on the online Oracle cold backup, very detailed:
First, cold backup
The process by which the database completes copies of all physical system files in the shutdown state, also known as offline backup
Suitable for non-archive mode,
1, take the record from the table randomly
SELECT * FROM (SELECT * to Staff ORDER by Dbms_random.random) indicates that 3 records are randomly taken from the staff table
Where RowNum
2. Produce random number
SELECT Dbms_random. RANDOM from
Viewing table space Information
Statement one:
SELECT DBF. Tablespace_name "Table space name",Dbf. file_name "Table Space file",Dbf. Totalspace "Total (M)",Dbf. Totalblocks as total block number,Dfs. FREESPACE "Total surplus (M)",Dfs. Freeblocks
Create or Replace function test111 (ItemNumber in varchar2) return sys_refcursor
is
return_cursor sys_refcursor;
begin
OPEN return_cursor for SELECT ' a ' dual WHERE 1 = itemnumber;
return return_cursor;
End test111;
Use the following
Declare
Cursor C1 is a select FID from t_dev_informationtable;
FID T_dev_informationtable.fid%type;
Begin
Open C1;
Loop
Fetch C1 into FID;
Exit when C1%notfound;
Insert into T_dev_maintenancesingles (Fnumber, Fsimplename, FID, Fcreatorid,
Substr
An intercept string function in Oracle.
The syntax is as follows:
substr (String, start_position, [length])
Parameter analysis:
String
String value
Start_position
Intercepts the initial position of the string,
I now want to use a field to save a long string (in the 4000,VARCHAR2 is not satisfied), think of long, but the Times with JDBC SQL incorrect, please expert advice, quite urgent ....
Do a search with Google ... e.g.Sample demonstrating the usage of
Normally sqlplus executed well, when I put the shell script containing the Sqlplus command into the scheduled task, the error: Error 6 initializing sql*plus sp2-0667:message file Sp1.MSB not found sp2-0750:you could need to set Oracle_home to your
--Monitoring whether the job performs an abnormal or stopped behavior
CREATE OR REPLACE PROCEDURE p_job_monitoring as
BEGIN
For V in (SELECT JOB, WHAT, failures, broken
From User_jobs T
WHERE t.failures > 15
OR t.broken = ' Y '
OR t.next_date >
Truncate is a unique keyword in Oracle. Its role is to empty a table, and in the deletion of data, and delete some of the differences, so that they can remember:
1, in function, truncate is to empty the contents of a table, it is equivalent to
After the system upgrade, one of the features is not normal, colleagues want to look at the upgrade before the stored procedures. The first thought is the flashback function, unfortunately, the flashback encountered a ORA-01555 error.
SELECT *
Alter any cluster modify the permissions of any cluster
Alter any index to modify permissions on arbitrary indexes
Alter any roles modify permissions for any role
Alter ANY SEQUENCE permission to modify any sequence
Alter any snapshot permissions to
Create or Replace package Aa_pkg_monitor_business_sql is
Procedure Pro_monitor_drop_policy (Object_schema in varchar2);Procedure Pro_monitor_add_policy (Object_schema in varchar2);
Procedure Pro_monitor_drop_main;Procedure
When you turn on Oracle listening, you receive the following error message:
Tns-12541:tns:no Listener Tns-12560:tns:protocol Adapter error tns-00511:tns:no Listener Linux error:lll:Connection Refused at this point, you check to see if your
First, start Oracle under Linux
Log on to CentOS, switch to Oracle user rights
# su–oracle
Then enter:
$ sqlplus "/as sysdba"
The original picture will become
Sql>
Next, enter
Sql> Startup
You can start the database normally.
In addition, the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service