1, the concept of table spaceOracle databases are divided into logical regions called table spaces-the logical structures that form Oracle databases. An Oracle database can have one or more tablespaces, while one table space corresponds to one or
Hibernate use Date,
Oracle can be set to date, date can be accurate to seconds, and when Java adds an accurate to a second date to the database, you can directly
Set (new Date ()), which is displayed in the database in 2015/10/17 16:15:13, directly
Date type, you can modify it in the following way, only to change the year and the day, not change the minutes and seconds
SELECT * from T_bdqc t where Hphm = ' Shaan aw1nw0 '
//Modify for custom time
UPDATE t_bdqc SET gxsj = to_date (To_char (
'
Win+r Open the Run window, enter cmd into the command line: Enter the Sqlplus, enter the username, enter the password (if it is Super admin sys, add as as SYSDBA after the password) and enter the SQL command line; When the connection succeeds, type
The large pool is used to allocate large memory to handle the larger memory of the shared pool and is a standby pool to ease Oracle's pressure on shared pool and PGA memory use
The main objects used with large pool are:
Multithreaded Server MTS:
SELECT * from Com_parameter (table name) as of timestamp to_timestamp (' 2015-08-03 9:00:00 ', ' yyyy-mm-dd HH24:MI:SS ')
This SQL statement is the table data that is used to find the point at which a table is in a particular feature. If you
1 oracle10g Uninstall Software Environment:1. Windows XP + Oracle 10g2, the Oracle installation path is: d:\OracleImplementation method:1, Start-> Settings-> Control Panel-> Management Tools-> Services to stop all Oracle services;2, Start-> Program->
How to connect to an Oracle database from a computer's command prompt (Cmd.exe).
Suppose you have an Oracle database with the following information:
ip:192.168.0.1
Sid:orcl
Port number: 1521
User name: TestUser
Password: 123456
The service
Error description
Oracle-04082:new or old references are not allowed in table-level triggers
Solve the sample
(1) Create a trigger, there is a problem
CREATE OR REPLACE TRIGGER trigger_cname
before DELETE on C
DECLARE
v_count number;
BEGIN
Add the following six fields to each table
select ' ALTER TABLE ' | | object_name | | ' ADD (created_by VARCHAR2);
From User_objects T
where object_type in (' TABLE ')
Union
Select ' ALTER TABLE ' | | object_name | | ' ADD
Reproduced from: http://blog.csdn.net/xixi_666/article/details/48179865
1. View the amount of space a table occupies:SELECT bytes/1024/1024 | | ' MB ' Table_size, u.* from user_segments u WHERE u.segment_name= ' jk_test ';2. View the actual size of
The start database command is divided into three phases:
Startup Nomount
ALTER DATABASE Mount
ALTER DATABASE Open
1. View All Users:SELECT * from Dba_user;SELECT * from All_users;SELECT * from User_users;2. View User system permissions:SELECT *
Later checked the data, found that table space data file capacity and db_block_size, in the initial construction of the library, db_block_size to be based on actual needs, set to 4k,8k, 16K, 32K, 64K and other sizes, Oracle's physical files allow
1. Temporarily modify by using functions, such as:
Select To_char (sysdate, ' Yyyy-mm-dd hh24:mi:ss ') from dual;
2. Modify the date format of the current session:
Alter session set nls_date_format= ' Yyyy-mm-dd HH24:MI:SS ';
3. Permanent
T.money is the left column of the following figure
To_char (Round (T.money, 2), ' 0.00 ') is the right column of the following figure
To take it apart, round (t.money,2) means rounding the T.money "two digits after the decimal point".
Create a sequence first
CreateSequence testincrease_sequence
IncrementBy 1--each time you add
a few startwith 1--start counting from 1
nomaxvalue--do not set the maximum value, To set the maximum value: maxvalue9999
nocycle--has been accumulated,
Oracle RAC 10.2.0.1 upgrade 10.2.0.5
1. The upgrade package for CRS and RDBMS is a, upgrade CRS first, upgrade the RDBMS, and finally upgrade the library
2, the most authoritative document in, 10205 of the patch, there is a readme.
Crontab timed execution of Oracle stored proceduresRequirements DescriptionWe have an Oracle stored procedure that needs to be executed every month, generate a report, and then send it to the business unit, which we have implemented in the system's
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