1: differences between char and varchar2:
Varchar2: variable-length variable length
Char: fixed-length fixed length
Memory is allocated when char is defined, while varchar2 dynamically allocates memory.
The following example clearly illustrates the
Oracle has three table connection technologies: Nested connection, merge connection, and hash connection.
1. nested loop Join)
Nested connection divides the dataset to be processed into an External Loop (driving data source) and an internal loop
The DBMS_RANDOM package in Oracle encapsulates some functions that generate random numbers and random strings. The following are commonly used:
DBMS_RANDOM.VALUE Function
This function is used to generate a random number. It can be used in either of
Oracle concepts-Overview of database files:
Oracle contains three basic files:
1: data file)
2: control file)
3: online redo log file)
Concepts of oracle Database files:
The final component of the oracle database architecture is reflected in the
When the index fragmentation is too large, the query execution speed will be affected, thus affecting our work efficiency. At this time, the most favorable measure is to re-build the index. This article mainly introduces the process of checking
How to monitor the current situation of oracle database tables and tablespaces
Declare
Unf number;
Unfb number;
Fs1 number;
Fs1b number;
Fs2 number;
Fs2b number;
Fs3 number;
Fs3b number;
Fs4 number;
Fs4b number;
Full number;
Fullb number;
Begin
Dbms_
1. Open the corresponding database through plsql.
2. Select the export users objects sub-menu under the menu tools
3. Select the name of the table to be exported and select the saved path.
4. Click the export button to export the selected
Code used
The Code is as follows:-- Sample dataDrop table t_collect purge;Create table t_collectSelect mod (rownum, 30) as flag, lpad (dbms_random.string ('l', 3), 4, '') as valFrom dual connect by rownum
Collect function (Oracle10g)-- 1: use
To view the physical file path of an oracle database, you must run the command to view the physical file path of the oracle database. Unless the database is installed by yourself and all security configurations have been performed, otherwise, it is
-- 19-1: CREATE a FUNCTION without parameters: create or replace function cur_datetimeRETURN VARCHAR2ISBEGINRETURN TO_CHAR (sysdate, 'yyyy "year" MM "month" DD "day" HH24 "Hour" MI "Minute" SS "seconds" '); END;/-- 19-2: create or replace function
Wed Aug 20 17:16:37 2008ORA-1652: unable to extend temp segment by 128 in tablespace DBA_TEMP
To solve this problem, we need to first cause the problem of SQL, there are several possible methods:
1. Set events
Alter system set events '1652 trace
1. Set automatic database backup control files and SPFILE files
2. Zero-level full database backup for RMAN every Sunday
3. Perform RMAN Level 1 Incremental Backup every day (except Sunday)
4. Full database backup and Incremental backup within
Create statistical information for Composite Columns
-- Checklist Structure
Select * from scott. emp where 1 = 2;
-- When a virtual column is created, the virtual column name is output.
Select dbms_stats.create_extended_stats ('Scott ', 'emp',' (
One of the top 10g features of Oracle is the Advisory Framework, which is a collection of optimization consultants that can help you make full use of your database. One of them, the SQL Access Advisor, recommends that you change the indexes and
Upgrading hardware is usually easy, But upgrading the database ...... There is no doubt that everyone has a painful experience. An experienced Oracle DBA mainly focuses on the successful completion of the upgrade and the possible downtime. Success
Oracle-related Distributed Data SolutionsThis solution may gradually die out in the cloud computing and SOA architecture, but it is still quite practical. This article briefly introduces common data synchronization solutions because Advanced
The latest Oracle connection code should be configured with the environment variable: ClassPath =.; E: j2sdk14lib ools. jar; E: oracleora90jdbclibclasses12.zip
The tested computer has an Oracle client installed and can be connected with SQLplus.
/*
*
In our work, we may encounter the following situations: the data sent by the customer or colleagues to be investigated is not a dmp file, but an excel file, usually a table with a few records. recently I happened to have encountered this situation,
This article uses Oracle 11 GB and. net Enterprise Library to access the database.First, reference the following packageMicrosoft. Practices. EnterpriseLibrary. CommonMicrosoft. Practices. EnterpriseLibrary. DataThe following code returns a
Oracle obtains all objects dependent on a package, including its sub-objects.
A temporary table is used to record the nodes that have been traversed.At the same time, a number of layers are used to record the packages that have been traversed.
High
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