Monday, May 21, 2012 0:49

‘Database’ News

Subscribe to RSS feed

ORA-01758 when trying to alter table

Sunday, February 8, 2009 13:29

If you are trying to add a new Not NULL columns to a table and you get the following error: ORA-01758: table must be empty to add mandatory (NOT NULL) column Since the values in the new column are null (after all, you just added the column) the new constraint can ...

Tagged with:

Oracle NVL Function

Wednesday, January 14, 2009 8:48

Oracle/PLSQL: NVL Function In Oracle/PLSQL, the NVL function lets you substitute a value when a null value is encountered. The syntax for the NVL function is: NVL( string1, replace_with ) string1 is the string to test for a null value. replace_with is the value returned if string1 is null. Applies To: Oracle 8i, Oracle ...

Tagged with: ,

Oracle Study Note

Monday, January 5, 2009 13:33

Oracle =========================================================== Books: Database Concepts ----------------------------------------------------------- Database Structure and Space Management ----------------------------------------------------------- Logical Database Structure * Schema/Schema object(the logical structures that directly refer to the DB's data a schema is owned by a user who has the same name as the schema) Table View Index Cluster * Data block * Extent * Segment * Tablespace Online(accessible)and Offine(not accessible) * Databse, TableSpaces, and Datafiles Physical Database Structures * Datafiles (the charateristics of ...

Tagged with: ,

MySQL Study Note

Monday, January 5, 2009 13:14

This is my study note about mysql :) MySQL ============================================== http://www.mysql.com Usages --------------------- System parameters *select version(),user(),current_date,now(); Install/Remove MySQL service *mysql -install|remove *net start|stop mysql (this command will not work if use mysqld --standalone) *mysqladmin -u root -p shutdown(it works in all status) Commands *Cancel the command \c Backup the data *mysqldump -u root -ppasswd user|othertable|--all-database>backup.sql Load the data from text file *load data local infile 'data.txt' ...

Tagged with:

MySQL study note

Monday, January 5, 2009 13:11

Tagged with: ,

ORA-00054: resource busy and acquire with NOWAIT specified

Monday, December 29, 2008 15:58

If you administer a busy database you will see this error from time to time. It is nothing to worry about, but it can be quite annoying when it stops you from doing something. It simply means that session has a lock on an object that your session is trying to ...

Tagged with:

Useful commands of Oracle

Monday, December 29, 2008 14:12

第一章:日志管理 1.forcing log switches sql> alter system switch logfile; 2.forcing checkpoints sql> alter system checkpoint; 3.adding online redo log groups sql> alter database add logfile [group 4] sql> (`/disk3/log4a.rdo`,`/disk4/log4b.rdo`) size 1m; 4.adding online redo log members sql> alter database add logfile member sql> `/disk3/log1b.rdo` to group 1, sql> `/disk4/log2b.rdo` to group 2; 5.changes the name of the online redo logfile sql> alter database ...

Tagged with:

Learn the fundamentals of Oracle

Monday, December 29, 2008 14:08

SQL*Plus — schemata — data types — DML & DDL examples — editing commands — using external files — the dual pseudo-table — introduction to transactions — optional exercise — references Introduction During this tutorial you will build on your databases knowledge by learning the fundamentals of Oracle, one of ...

Tagged with:

Oracle Package

Monday, December 29, 2008 13:35

A package is a group of procedures, functions, variables and SQL statements created as a single unit. It is used to store together related objects. A package has two parts, Package Specification or spec or package header and Package Body. Package Specification acts as an interface to the package. Declaration of ...

Tagged with:

PLSQL

Tuesday, December 23, 2008 13:10

Begin for i in 1..10 loop insert into TABLE_NAME () values () ; end loop; end; commit;

Tagged with: