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
Bulk change methods for table and indexed table spaces in Oracle1, query the current user of all the tables
Select ' ALTER TABLE ' | | table_name | | ' Move tablespace tablespacename; ' From User_all_tables;
Select ' ALTER TABLE ' | | table_name |
Oracle deadlock problem has been bothering us, here is a way to teach you the Oracle deadlock, if you have encountered the Oracle deadlock problems, may wish to see ...
Oracle deadlock problem has been bothering us, here is a way to teach you the
This example has been completely tested, one-way, and synchronized to be used.
--Noun Description: Source--The database being synchronizedPurpose-the database to sync to
The first 6 steps must be performed, after the 6th is some auxiliary
Functions in Oracle
Functions in Oracle are part of subroutines and packages, and functions are similar to procedures and are named Pl/sql blocks stored in a database. The main feature of a function is that it must return a value. Specify the
When we query the index state, we usually use the User_indexes table, which has a column (Clustering_factor clustering factor), here simply describes the meaning of the next cluster factor, you know that the data in the data table is a disordered
1, problem phenomenon
2. Solution Method
The first step: the current SOLARIS10 system login is logged in as root, when the mouse click on the desktop, right again "open terminal"
Step Two: enter bash, switch to bash-3.00, if not, the
Prerequisite: Before making the insert data, if it is not a production environment, please remove the index and constraint of the table, and then build the index and constraints after the insert completes.
INSERT INTO TAB1 select * from TAB2; Commit
First, add a reference to the Oracle.DataAccess.dll in the Project reference section.
Using Oracle.DataAccess.Client; Introducing Oracle.dataaccess namespaces
OracleConnection conn = new OracleConnection ("User id=user; Password=pwd;data SOURCE=ORCL
1
SELECT * FROM
(
SELECT segment_name, SUM (BYTES)/1024/1024 M
From Dba_segments
WHERE OWNER = user
GROUP by Segment_name
ORDER BY 2 DESC
)
2 The second method
SELECT Partition_name, High_value, High_value_length, Tablespace_name,
Pct_free, pct_used,
Partial commit inserts in Oracle to prevent redo from consuming too much to commit transactions in batches: The following are three different pl/sql bodies:
1, write a simple pl/sql block to simulate the case-by-line submission, pay attention to
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
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
Executes the sh of the stored procedure. /oracle/.bash_profile/oracle/bin/sqlplus qd/qd@info
Timed execution of stored procedures using timersView Timer:
Crontab-l
CRONTAB-E Edit Timer
I insert a new: w! Save: q! Exit
The contents are as
A long time ago, look back.
1.os:gentoo-linux-2.6.23-rc5
Oracle:oracle Database 10g Release 2 (10.2.0.1.0) for Linux x86
Download Address:
http://www.oracle.com/technology/software/products/database/oracle10g/index.html (Size 668,734,007 bytes)
Database jobs are more familiar to DBAs because they often have to automate some scripts, do database backups , or refine data, or do database performance optimizations, including rebuilding indexes, and so on. However, the Oracle timer job time
+++10gr2
If the host name is modified and the corresponding information is not changed, the database will be/etc/hosts when it is shut down and started.
[Oracle@oracle ~]$ Sqlplus/as SYSDBA
Sql*plus:release 10.2.0.1.0-production on Sun APR 6 19:1
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.