file:statement: Alter tablespace tablespace_name add Datafiel ' path_dbf ' size;--Add a data file with an initial size of 3M that does not grow from the TS table space;sql> alter tablespace TS2 Add datafile '/oracle/ts03.dbf ' size 3M;Thinking-sql> alter tablespace TS2 Add datafile '/oracle/ts04.dbf ' size 2M autoextend on next 2M maxsize 10M3/B. Changing the size of a data fileALTER DATABASE datafile ' PATH_.DBF ' resze size;-Add 8m to the TS tablespace data file;sql> ALTER DATABASE datafile '
Recently contacted Oracle again for work reasons, so re-acquainted with Oracle's basic commands.--Change Password1. Run-type "cmd" carriage return2. Type "Sqlplus/nolog" carriage return3. Type "Conn/as sysdba" carriage return4. Type "ALTER user Scott identified by Tiger;"--Normal User loginConn Scott/[email PROTECTED]:1521/ORCL--Account UnlockedConn Sys/sys as sysdba;--logged in as a DBAAlter user Scott account unlock;--and then unlock--Account AuthorizationGrant Create Session,create table,crea
Copy codeThe Code is as follows:BEGINDECLARE '@ I' int (11 );DECLARE '@ siteCount' int (11 );DECLARE '@ sqlstr' VARCHAR (2560 );DECLARE '@ sqlinsert' VARCHAR (2560); // DECLARE the variable aboveSelect count (0) into '@ siteCount' FROM tbl_base_site; // calculates the total number of records in the tbl_base_site table.Set '@ I' = 1;WHILE ('@ I'-1) * 300 SET @ sqlstr = CONCAT ('create TABLE tbl_base_syslog ',' @ I ',' (syslog_id INT (11) AUTO_INCREMENT PRIMARY KEY,Create_user VARCHAR (32 ),Descri
MySQL dynamically creates a table and stores data in table shards. For more information, see.
MySQL dynamically creates a table and stores data in table shards. For more information, see.
The Code is as follows:
BEGIN
DECLARE '@ I' int (11 );
DECLARE '@ siteCount' int (11 );
DECLARE '@ sqlstr' VARCHAR (2560 );
DECLARE '@ sqlinsert' VARCHAR (2560); // DECLARE the variable above
Select count (0) into '@ siteCount' FROM tbl_base_site; // calculates the total number of records in the tbl_base_site
Oracle user-maneged recovery (2) Restoration Process for restoring data files to a new location: 1. use the operating system command to COPY the file to the new location 2. start and load the database 3. use the alter database command to update the control file, for example, alter database rename file 'xxxxxxxx' to 'xxxxxxxx '; SQL> create tablespace tbs_test datafile '/database/oradata/skyread/tbs_test.dbf' size 10 M; -- create a test table space Tablespace created. SQL> select file_name from d
;
7. Check database parameter information for parameters without default valuesCol name format A20Select name, value from V $ parameter where isdefault = 'false ';8. Check whether the default or temporary tablespace of the Database User information is system tablespace.
Select user_id,Substr (username, 1, 15) username,Substr (password, 1, 15) password,Substr (default_tablespace, 1, 15) "Default TBS ",Substr (temporary_tablespace, 1, 15) "temporary
Preface:
The definition of pseudo-original in Baidu encyclopedia is "the so-called pseudo-original is to put an articleArticleTo make the search engine think it is an original article, so as to increase the weight of the website ". In fact,ProgramFor ape, pseudo-original is "replacing a large number of synonyms in the Article ".
Seo friends-especially those with black hat SEO-must know that pseudo-originality is critical to search engine optimization. The English pseudo-original is called "S
value of the data),but data has *inertia*. Migrating TBs of data on-the-fly isa massive undertaking compared to changing drcses or fixing theaverage logic error in your code. Recovering TBs of data whiledown, limited by what spindles can do for you, is a helplessfeeling.Databases are also complex systems that are effectively blackboxes to the end developer. By adopting a database system,you place absolu
space is self-contained:Note: Only self-contained tablespaces can be completely restored independently. Self-contained means that the objects in the tablespace do not depend on the objects in other tablespaces. For example, the objects indexed in the tablespace are basically in other tables.
Space. The lob columns of some tables in this table are placed in other tablespaces.
SQL> Conn/As sysdbaConnected.SQL> exec dbms_tts.transport_set_check ('tspitr _ TBS
system set utl_file_dir = '*' scope = spfile;Alter system set open_links = 4 scope = spfile;
3. set alter database archivelog on the master/slave machine to enable alter system set log_archive_start = true in the archived mout state;
Check whether the archive is successful select recid, name, first_time from v $ archived_log;
4 Master/Slave table space and user
Create tablespace stream_tbs datafile 'G: \ oracle \ oradata \ rman \ stream01.dbf' size 200 m
Autoextend on extent management local un
used.Allow n corrupton indicates that archived is allowed.There are n bad blocks in the redo file. You can specify a value greater than 1 for test. When applying recover, it can only be 0 or 1.
Recover database until {cancel | time datatime | change SCN} [using backup controlfile] -- Mount -- recover the entire databaseTime Point, SCN, cancel
Recover tablespace TBS ,...
Recover datafile {filenumber | filename },...
Recover standby tables
MySQL dynamically creates a table and stores data in sub-tables in bitsCN.com.
BEGIN
DECLARE '@ I' int (11 );
DECLARE '@ siteCount' int (11 );
DECLARE '@ sqlstr' VARCHAR (2560 );
DECLARE '@ sqlinsert' VARCHAR (2560); // DECLARE the variable above
Select count (0) into '@ siteCount' FROM tbl_base_site; // calculates the total number of records in the tbl_base_site table.
Set '@ I' = 1;
WHILE ('@ I'-1) * 300 SET @ sqlstr = CONCAT ('create TABLE tbl_base_syslog ',' @ I ',' (syslog_id INT (11) AUTO_
system/pwd @ ip/ORACLE_SID tablespaces = tbs dumpfile = dumpdir: tbs_01.dmp logfile = dumpdir: tbs_exp_01.log job_name = exp_tbs-- Export a specific object: export a specified object (the table starting with function, procedure, and XT in the following example)Expdp system/pwd @ ip/ORACLE_SID include = function include = procedure include = table: "like 'xt % '" dumpfile = dumpdir: tab_01.dmp nologfile = y job_name = exp_tab-- Export table: export th
Mobile Debugging interface (according to the settings do: USB connection, also turned on the phone USB debugging function, opened what TBS function):
Phone results:
Click the result after starting the commissioning:
Unexpectedly did not search the device!!How to solve??
Reply content:
Mobile Debugging interface (according to the settings do: USB connection, also turned on the phone USB debugging function, opened what
This example describes the SQLite action class for JavaScript encapsulation. Share to everyone for your reference. Specifically as follows:
function SQL (name,v,desc,size,tables) {
this.db=null;
This.name=name;
This.v=v;
This.desc=desc;
This.size=size;
This.tables=tables;
This.ini ();
}
Sql.prototype.ini=function () {
var self=this;
Self.db=opendatabase (self.name,self.v,self.desc,self.size);
Self.db.transaction (Function (TX) {
Self.tables.forEach (function (s) {
tx.execu
one, linked database
$conn = new Mongo ("Mongodb://ip:port/dbname:dbpwd");
This is the default connection to the local 27017 port, of course, you can also connect remote host such as $db = $conn->selectdb ("dbname"); $collection = $db->selectcollection (' tablename '); This is called TableName easy to understand, in fact MONGO is called set $dbs = $conn->listdbs ();
Gets an array//var_dump ($DBS) containing the DB information; $tbs = $db->listcollec
DATABASE begin backup;
9 Start script
ALTER DATABASE end backup;
ALTER DATABASE backup Controlfile to ' dir/contlbak.ctl ' reuse;
Create pfile= ' dir/initsybo2sz.ora ' from SPFile;
13* set feedback on heading in verify on PageSize 100
Sys@sybo2sz> @db_hot_bak
Sys@sybo2sz> Show Parameter Control_files
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
Control_files String/u02/database/sybo2sz/controlf
/cntl1sybo2sz.ctl,/u02/databa
Se/sybo2sz
user log into HBase, in accordance with the UV table calculation. (2) After-storage data to be statistical analysis (3) User log format (simulated data)
"06/jul/2015:00:01:04 +0800" "GET" "http%3a//jf.10086.cn/m/" "http/1.1" "$" "http://jf.10086.cn/m/subject/ 100000000000009_0.html "" mozilla/5.0 (Linux; U Android 4.4.2; ZH-CN; Lenovo a3800-d build/lenovoa3800-d) applewebkit/533.1 (khtml, like Gecko) version/4.0 mqqbrowser/5.4 tbs/025438 Mobile safar
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.