Scott is my first user name to contact Oracle. Regardless of the version of the database, 9i, 10g, I like to use scott for some testing. But after installing oracle 11g, scott users cannot use it, which makes me feel awkward.
When you log on with
After VNC remotely connects to CentOS 5.5 to run the installation file, the following error is reported:
Checking installer requirements...
Checking operating system version: must be RedHat-3, SUSE-9, redhat-4, UnitedLinux-1.0, asianux-1,
1. Matlab establishes a connection to the Oracle database through ODBC
1. In Windows, choose Start> Control Panel> performance and maintenance> Administrative Tools and click data source (ODBC )"
2. Select "system DSN"> "add"> select "Oracle in your
Add Constraints
SQL> alter table customer add constraint cardunique unique (cardId );
Delete Constraints
SQL> alter table customer drop constraint addresscheck;
When deleting a primary key, the cascade option must be included.
SQL> alter table
1. query the list of log files used:Select * from v $ log;
2. query the log files of the Group in use:Select * from v $ logfile;
3. Force log switching:Alter system switch logfile;
4. query historical logs:Select * from v $ log_history;
5. Log
0. differences when querying groups
When using Group By grouping in Oracle databases, the columns after select must be group Columns (Group by (columns) or lie with Aggregate functions.
However, MySQL does not need to be grouped as needed.
Mysql>
Oracle has db_block_size and the operating system also has block size. The following is a brief introduction.
AIX:
View the size of each block in the AIX operating system:
# Lsfs-q/u01
Name Nodename Mount Pt VFS Size Options Auto
After mysql is compiled and installed in the Linux source code, the installation path is modified. However, an error is reported after the environment variable is set, as follows:
[Root@www.bkjia.com var] # mysqld_safe -- user = mysql &
[1]
A ORA-00119 and ORA-00132 error was received when the recent system was started, which is actually related to LISTENER, the usual solution is to dump spfile to pfile and then start from pfile
And generate a new spfile. However, this operation method
View all user partition tables and partition policies (level 1 and level 2 partition tables are included ):
SELECT p. table_name AS table name, decode (p. partitioning_key_count, 1, 'Primary partition') AS partition type,P. partitioning_type AS
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 example, if you want to forward the result of name = 'zhang
After the installation is complete (read the following link: Installing Oracle 10G R2 on CentOS 5.6), after you reactivate the instance, you will find that Oracle is not started on your own. This is normal, because Oracle Installation in Linux does
Library cache is a part of the Shared pool, which is almost the most complex part of the Oracle memory structure. It mainly stores information about shared curosr (SQL) and PLSQL objects (functions, procedure, trigger, and the table, index, view,
To create a tablespace, you must first have the database orcl plsql tool to create an SQL window for execution.
CreateTablespace orcl_tablespace datafile'D: \ Oracle \ product \ 10.1.0 \ oradata \ orcl \ orcl_data.dbf' Size1000 M;
-- Create the
1) STARTUPStartup open: the default parameter of STARTUP is OPEN. OPEN the database and allow access to the database. All files described in the control file of the current instance have been opened.Startup mount: MOUNT the database. only DBA is
After installing Oracle 11 GB in VMware 7.14, it was found that sqlplus could not be started. I searched the internet. It is estimated that the environment variable is not set.
The current oracle is installed in/fantlam/oracle/app/oracle/product/11.2
Oracle 11g R2 explicitly states that export and import are no longer supportedReason for elimination: Import and Export speed is slowAlternative: Data Pump, speed increased by 5 times, but cannot be remotely imported or exported, only on the
Create and manage Oracle Partition tables
I. Create a partition table
Partition tables are divided into four types: 1. Range Partition Table 2. List Partition Table 3. Hash Partition Table 4. Combined Partition Table
The following table creates four
Skip the theoretical things and go to the web page to introduce automatic sharding.
Or test with million data
Insert million pieces of data to a database without sharding.
Data storage:
Performance_^ [root @:/usr/local/mongodb/data/mongodb/test] #
After the database server is set up, the first thing we need to do is not to consider which MySQL-initiated programs should be run on the server that supports the database, but when the database is damaged, how to safely restore to the last normal
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