Today, our new employee installed oracle. Fortunately, he encountered an exception as mentioned in the installation process. The common solution is to check whether the installation path contains Chinese characters.Coincidentally, this brother
How to export ORACLE data directly to a text file.The spool buffer pool technology in Oracle can be used to export Oracle Data to text files.
1. Enter the buffer start command in Oracle PL/SQL and specify the output file name:Spool D: output.txt
2.
In many cases, we use hibernate to build a database. In Oracle, if sequence is used in a database that has been created, you can introduce it to hibernate following the steps below:1. in OracleFirst create Sequence
Create SequenceSeq_idMinvalue
1. Create a file/etc/oratab
# Add the following content to the/etc/oratab file,
# $ Oracle_sid is the SID of your Oracle Database
# $ ORACLE_HOME is the ORACLE_HOME of your Oracle Database
# Y indicates that Oracle database is required to be started
// View the tablespace InformationSelect file_name, tablespace_name, bytes, user_blocks from dba_data_files
// Create a tablespaceCreate tablespace zjsmsweb datafile '/opt/Oracle/APP/Oracle/product/9.2.0/dbs/myweb. ora 'size 512 M autoextend on next
Transactions and built-in functions in Oracle
What is a transaction?
A transaction is used to ensure data consistency. It consists of a group of related DML statements. The statements in this group are either all successful or all failed.
For
Manage tablespaces and data files
Tablespace is a logical component of the database.
Physically, the database data is stored in the data file. Logically, the database is stored in the tablespace, which is composed of one or more data files.
How to export ORACLE data directly to a text file.
The spool buffer pool technology in Oracle can be used to export Oracle Data to text files.
1. Enter the buffer start command in Oracle PL/SQL and specify the output file name:Spool D:
1. Oracle Server is a data management system (RDBMS) that provides open, comprehensive, and almost perfect information management. Oracle is composed of an Oracle instance and an Oracle database.
The Oracle server consists of two parts: the Oracle
The view SYS. dba_free_space and SYS. dba_data_files must be granted the query permission on these two view objects.
-- Connect as sysdba
Grant select on SYS. dba_free_space to Forrest;
Grant select on SYS. dba_data_files to Forrest;
View
I. Tree table structure:
Node ID parent ID node name
Ii. formula:
Select node ID, node name, Level
From table
Connect by prior node id = parent node ID
Start with parent node id = node Value
Note:
1. The common tree structure is the company's
Before you begin to explain how to use the Oracle sequence, add "/" to the use of Oracle client sqlplus, that is, if you execute multiple rows of statements, you must add "/" to end the statement and execute it! The topic of this article is to
1. merge two fields in the table into one display:
SQL> select ID | stu_name as test from student;
Test----------------------2007112810 Guo Xiaomei2007112812 Zhang Dayu2007112813aaa2007112814 Wang dazhi2007112815 Yi Jianlian2007112513 teacher
You
I. OracleAspect
1. Create an oracle Stored Procedure
1) create a table
create table users(usesNo number,userName varchar(50));
2) create a package
Create or replace package multirefcursors
Type test_cursor is ref cursor;
Procedure getrecord
Oracle nested representation example (from: http://www.cnblogs.com/starzhao/archive/2010/05/19/1739234.html) ---- nested table: is to define the field in a table as a table, the data of this field table is stored in an external table,
For example,
I. Preparations
To integrate the above environment, you must first prepare the following software packages:
(1) database Perl Interface
1. perl5 Oracle dbi driver: DBD-Oracle-1.03.tar.gz
2. perl5 universal database interface program: DBI-1.13.tar.gz
Precautions for migration from MySQL to Oracle
2001-09 Yu Feng has many application projects. At the beginning, MySQL Databases can basically meet various functional requirements. As the number of application users increases, the amount of data
1. It is best to use analysis functions.Row_number () over (partition by col1 order by col2)
For example, if you want to retrieve-records, sort them by tname.
Select tname, tabtype from (Select tname, tabtype, row_number () over (order by tname) Rn
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