A new photo of a new person.According to the requirements of the supervisor recently, the dynamic forum should be placed on the internal website, and the for access should be changed to for Oracle. I didn't answer oracle in the past, but I thought I
Is this also an impetuous trend in the industry? As far as I know, it is a very time-consuming task for a good database administrator to transform from other types of data to Oracle management.
Oracle Database administrators do not have a low price.
1) create a storage directoryMkdir backup
2) Write a shell script #! /Bin/bashExport oracle_base =/opt/Oracle -- the path must be changed according to the actual path.Export ORACLE_HOME = $ oracle_base/ora10gr2/db_1 -- the path must be changed
InProgramWhen defining variables, constants, and parameters, you must specify the PL/SQL data type for them. When compiling PL/SQL programs, you can use the scalar type, composite type, reference type, and lob (largeObject.The most common scalar
If you are familiar with Sequence in ORACLE and want to implement Sequence in SqlServer, you will find that no ready-made Sequence object can be created. What should we do?
Of course, this small problem is not difficult for our programmers. "max + 1"
Below is an alphabetical listing of the Oracle system tables that are commonly used.
System Table
Description
ALL_ARGUMENTS
Arguments in object accessible to the user
ALL_CATALOG
All tables, views, synonyms,
Using a cursor, I think this method is absolutely safe.-- First, set a cursor to store the required data in the cursor:
Copy codeThe Code is as follows: declare
CURSOR D_CURSOR_CUS_INFO IS
Select t3.id _ as id _,
T3.owe _ money _ as owe_money _,
A.
1. Optimizing applications and business logic is the most important thing.
2. flexible application of the database design phase paradigm and the anti-paradigm. Generally, the internal design should be physical and non-standard for frequently
1. query table space usage:
Sqlplus system/manager @ topprod
Copy codeThe Code is as follows: SQL> @ q_tbsFREE
2. How to query temp:Sqlplus system/manager @ topprodCopy codeThe Code is as follows: SQL> SELECTD. tablespace_name, D. status
A cluster is actually a group of tables, which are composed of multiple tables that share the same data block. Combining tables that are frequently used together into clusters can improve processing efficiency; a table in a cluster is called a
The oracle wm_concat (column) function is frequently used. The following describes how to use the oracle wm_concat (column) function to merge fields. If you use the oracle wm_concat (column) function) if you are interested in function usage, take a
In Oracle queries, if there is no sorting, but you want to route the information of a specific value in a column to the front, use the decode (field, 'field value', number) of oracle)
For exampleSelect name from all data queried by the user. If you
Parse the oracle select locking method and the query of the lockI. oracle select locking method
Copy codeThe Code is as follows: create table test (a number, B number );
Insert into test values (1, 2 );
Insert into test values (3, 4 );
Insert into
1. DIRECTORYSpecifies the directory where the dump and log files are located
DIRECTORY = directory_object
Directory_object is used to specify the DIRECTORY object name. Note that the DIRECTORY object is an object created using the create directory
1: create a user
Copy codeThe Code is as follows: create temporary tablespace user_temp
Tempfile 'd: \ app \ topwqp \ oradata \ orcl \ user_temp.dbf'
Size 500 m
Autoextend on
Next 50 m maxsize 2048 m
Extent management local;
Create tablespace
At this time, if duplicate data exists in the temporary table, whether the primary key field businessid is repeated or the whole row is duplicated, an error in violation of the unique primary key constraint will be reported.
Method: group by XX
It is easy to achieve automatic growth of inserted data in SQL Server, but it is not easy to implement this operation in oracle Database. net to obtain the id of the newly inserted data, and there will be no read errors, it is more difficult, in
1. Create a connection string that contains the database name, user name, and password.
2. Create an operation string containing SQL statements for Data Operations
3. Establish a Connection and use the Connection string as the parameter.
4.
UPDATE
1. Back up data first (security and performance improvement ).
2. Batch update and batch commit to prevent lock tables.
3. If the updated index automatically has a large volume of data, the index will be canceled first and then
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