===========环境模拟=================

-----------模拟数据----------------

SYS@ORCL>create tablespace test

  2  datafile '/u01/app/oracle/oradata/ORCL/test.dbf' size 5m;





Tablespace created.





SYS@ORCL>

SYS@ORCL>

SYS@ORCL>create table test(x int)tablespace test;





Table created.





SYS@ORCL>insert into test values(1);





1 row created.





SYS@ORCL>;

  1* insert into test values(1)

SYS@ORCL>insert into test values(2);





1 row created.





SYS@ORCL>commit;





Commit complete.





SYS@ORCL>alter system switch logfile;





System altered.





SYS@ORCL>/





System altered.





SYS@ORCL>/

 

System altered.





SYS@ORCL>/





System altered.





SYS@ORCL>insert into test values(3);





1 row created.





SYS@ORCL>alter system switch logfile; 





System altered.





SYS@ORCL>insert into test values(4);





1 row created.





SYS@ORCL>commit;





Commit complete.





SYS@ORCL>alter system switch logfile;





System altered.





SYS@ORCL>insert into test values(5);





1 row created.





SYS@ORCL>commit;





Commit complete.





SYS@ORCL>alter system switch logfile;





System altered.





SYS@ORCL>/





System altered.





SYS@ORCL>/





System altered.





SYS@ORCL>shutdown immediate;





-----------删除数据文件------------

[oracle@itaa-ocp ORCL]$ ls

control01.ctl  example01.dbf  redo03.log    temp01.dbf     users01.dbf

control02.ctl  redo01.log     sysaux01.dbf  test.dbf

control03.ctl  redo02.log     system01.dbf  undotbs01.dbf

[oracle@itaa-ocp ORCL]$ mv test.dbf test.dbf.bak





-----------制造归档断点-----------------

[root@itaa-ocp 2016_01_13]# mv o1_mf_1_10_c9cj7grz_.arc o1_mf_1_10_c9cj7grz_.arc.bak

[root@itaa-ocp 2016_01_13]# ls

o1_mf_1_10_c9cj7grz_.arc.bak  o1_mf_1_14_c9cj9zsv_.arc  o1_mf_1_6_c9cj5xdt_.arc

o1_mf_1_11_c9cj8lgw_.arc      o1_mf_1_3_c9cj24qn_.arc   o1_mf_1_7_c9cj5yj9_.arc

o1_mf_1_12_c9cj9msn_.arc      o1_mf_1_4_c9cj382m_.arc   o1_mf_1_8_c9cj63xy_.arc

o1_mf_1_13_c9cj9ssq_.arc      o1_mf_1_5_c9cj4xpn_.arc   o1_mf_1_9_c9cj676b_.arc

[root@itaa-ocp 2016_01_13]# ll

total 500

-rw-r----- 1 oracle oinstall   5120 Jan 13 11:13 o1_mf_1_10_c9cj7grz_.arc.bak

-rw-r----- 1 oracle oinstall   2048 Jan 13 11:14 o1_mf_1_11_c9cj8lgw_.arc

-rw-r----- 1 oracle oinstall  38400 Jan 13 11:14 o1_mf_1_12_c9cj9msn_.arc

-rw-r----- 1 oracle oinstall   1536 Jan 13 11:15 o1_mf_1_13_c9cj9ssq_.arc

-rw-r----- 1 oracle oinstall   6144 Jan 13 11:15 o1_mf_1_14_c9cj9zsv_.arc

-rw-r----- 1 oracle oinstall 406016 Jan 13 11:11 o1_mf_1_3_c9cj24qn_.arc

-rw-r----- 1 oracle oinstall   2560 Jan 13 11:11 o1_mf_1_4_c9cj382m_.arc

-rw-r----- 1 oracle oinstall   5120 Jan 13 11:12 o1_mf_1_5_c9cj4xpn_.arc

-rw-r----- 1 oracle oinstall   4608 Jan 13 11:13 o1_mf_1_6_c9cj5xdt_.arc

-rw-r----- 1 oracle oinstall   1024 Jan 13 11:13 o1_mf_1_7_c9cj5yj9_.arc

-rw-r----- 1 oracle oinstall   1536 Jan 13 11:13 o1_mf_1_8_c9cj63xy_.arc

-rw-r----- 1 oracle oinstall   1024 Jan 13 11:13 o1_mf_1_9_c9cj676b_.arc

[root@itaa-ocp 2016_01_13]# 

============恢复过程=====================

-----------打开数据库-------------------

SYS@ORCL>startup        

ORACLE instance started.





Total System Global Area  285212672 bytes

Fixed Size                  1218992 bytes

Variable Size              92276304 bytes

Database Buffers          188743680 bytes

Redo Buffers                2973696 bytes

Database mounted.

ORA-01157: cannot identify/lock data file 6 - see DBWR trace file

ORA-01110: data file 6: '/u01/app/oracle/oradata/ORCL/test.dbf'





SYS@ORCL>alter database datafile 6 offline drop;





Database altered.





SYS@ORCL>alter database open;





Database altered.

---------查询须要恢复的表空间--------------

RMAN> report schema;





using target database control file instead of recovery catalog

Report of database schema





List of Permanent Datafiles

===========================

File Size(MB) Tablespace           RB segs Datafile Name

---- -------- -------------------- ------- ------------------------

1    480      SYSTEM               ***     /u01/app/oracle/oradata/ORCL/system01.dbf

2    30       UNDOTBS1             ***     /u01/app/oracle/oradata/ORCL/undotbs01.dbf

3    240      SYSAUX               ***     /u01/app/oracle/oradata/ORCL/sysaux01.dbf

4    5        USERS                ***     /u01/app/oracle/oradata/ORCL/users01.dbf

5    100      EXAMPLE              ***     /u01/app/oracle/oradata/ORCL/example01.dbf

6    0        TEST                 ***     /u01/app/oracle/oradata/ORCL/test.dbf





List of Temporary Files

=======================

File Size(MB) Tablespace           Maxsize(MB) Tempfile Name

---- -------- -------------------- ----------- --------------------

1    20       TEMP                 32767       /u01/app/oracle/oradata/ORCL/temp01.dbf

--------准备辅助数据库路径---------------

[oracle@itaa-ocp oracle]$ mkdir aux

[oracle@itaa-ocp oracle]$ cd aux/

[oracle@itaa-ocp aux]$ pwd

/u01/app/oracle/aux





--------恢复数据文件至断点--------------

RMAN> recover tablespace 'TEST' until logseq 9 auxiliary destination '/u01/app/oracle/aux';





Starting recover at 13-JAN-16

allocated channel: ORA_DISK_1

channel ORA_DISK_1: sid=148 devtype=DISK

RMAN-05026: WARNING: presuming following set of tablespaces applies to specified point in time





List of tablespaces expected to have UNDO segments

tablespace SYSTEM

tablespace UNDOTBS1





Creating automatic instance, with SID='brdd'





initialization parameters used for automatic instance:

db_name=ORCL

compatible=10.2.0.1.0

db_block_size=8192

db_files=200

db_unique_name=tspitr_ORCL_brdd

large_pool_size=1M

shared_pool_size=110M

#No auxiliary parameter file used

db_create_file_dest=/u01/app/oracle/aux

control_files=/u01/app/oracle/aux/cntrl_tspitr_ORCL_brdd.f









starting up automatic instance ORCL





Oracle instance started





Total System Global Area     201326592 bytes





Fixed Size                     1218508 bytes

Variable Size                146802740 bytes

Database Buffers              50331648 bytes

Redo Buffers                   2973696 bytes

Automatic instance created





contents of Memory Script:

{

# set the until clause

set until  logseq 9 thread 1;

# restore the controlfile

restore clone controlfile;

# mount the controlfile

sql clone 'alter database mount clone database';

# archive current online log for tspitr to a resent until time

sql 'alter system archive log current';

# avoid unnecessary autobackups for structural changes during TSPITR

sql 'begin dbms_backup_restore.AutoBackupFlag(FALSE); end;';

}

executing Memory Script





executing command: SET until clause





Starting restore at 13-JAN-16

allocated channel: ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: sid=37 devtype=DISK





channel ORA_AUX_DISK_1: starting datafile backupset restore

channel ORA_AUX_DISK_1: restoring control file

channel ORA_AUX_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/ORCL/backupset/2016_01_13/o1_mf_ncsnf_TAG20160113T111138_c9cj4tcp_.bkp

channel ORA_AUX_DISK_1: restored backup piece 1

piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2016_01_13/o1_mf_ncsnf_TAG20160113T111138_c9cj4tcp_.bkp tag=TAG20160113T111138

channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:02

output filename=/u01/app/oracle/aux/cntrl_tspitr_ORCL_brdd.f

Finished restore at 13-JAN-16





sql statement: alter database mount clone database





sql statement: alter system archive log current





sql statement: begin dbms_backup_restore.AutoBackupFlag(FALSE); end;

released channel: ORA_DISK_1

released channel: ORA_AUX_DISK_1





contents of Memory Script:

{

# generated tablespace point-in-time recovery script

# set the until clause

set until  logseq 9 thread 1;

plsql <<<-- tspitr_2

declare

  sqlstatement       varchar2(512);

  offline_not_needed exception;

  pragma exception_init(offline_not_needed, -01539);

begin

  sqlstatement := 'alter tablespace '||  'TEST' ||' offline for recover';

  krmicd.writeMsg(6162, sqlstatement);

  krmicd.execSql(sqlstatement);

exception

  when offline_not_needed then

    null;

end; >>>;

# set an omf destination filename for restore

set newname for clone datafile  1 to new;

# set an omf destination filename for restore

set newname for clone datafile  2 to new;

# set an omf destination tempfile

set newname for clone tempfile  1 to new;

# set a destination filename for restore

set newname for datafile  6 to 

 "/u01/app/oracle/oradata/ORCL/test.dbf";

# rename all tempfiles

switch clone tempfile all;

# restore the tablespaces in the recovery set plus the auxilliary tablespaces

restore clone datafile  1, 2, 6;

switch clone datafile all;

#online the datafiles restored or flipped

sql clone "alter database datafile  1 online";

#online the datafiles restored or flipped

sql clone "alter database datafile  2 online";

#online the datafiles restored or flipped

sql clone "alter database datafile  6 online";

# make the controlfile point at the restored datafiles, then recover them

recover clone database tablespace  "TEST", "SYSTEM", "UNDOTBS1" delete archivelog;

alter clone database open resetlogs;

# PLUG HERE the creation of a temporary tablespace if export fails due to lack

# of temporary space.

# For example in Unix these two lines would do that:

#sql clone "create tablespace aux_tspitr_tmp

#           datafile ''/tmp/aux_tspitr_tmp.dbf'' size 500K";

}

executing Memory Script





executing command: SET until clause





sql statement: alter tablespace TEST offline for recover





executing command: SET NEWNAME





executing command: SET NEWNAME





executing command: SET NEWNAME





executing command: SET NEWNAME





renamed temporary file 1 to /u01/app/oracle/aux/TSPITR_ORCL_BRDD/datafile/o1_mf_temp_%u_.tmp in control file





Starting restore at 13-JAN-16

allocated channel: ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: sid=39 devtype=DISK





channel ORA_AUX_DISK_1: starting datafile backupset restore

channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set

restoring datafile 00001 to /u01/app/oracle/aux/TSPITR_ORCL_BRDD/datafile/o1_mf_system_%u_.dbf

restoring datafile 00002 to /u01/app/oracle/aux/TSPITR_ORCL_BRDD/datafile/o1_mf_undotbs1_%u_.dbf

restoring datafile 00006 to /u01/app/oracle/oradata/ORCL/test.dbf

channel ORA_AUX_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/ORCL/backupset/2016_01_13/o1_mf_nnndf_TAG20160113T111138_c9cj3btp_.bkp

channel ORA_AUX_DISK_1: restored backup piece 1

piece handle=/u01/app/oracle/flash_recovery_area/ORCL/backupset/2016_01_13/o1_mf_nnndf_TAG20160113T111138_c9cj3btp_.bkp tag=TAG20160113T111138

channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:26

Finished restore at 13-JAN-16





datafile 1 switched to datafile copy

input datafile copy recid=5 stamp=901020119 filename=/u01/app/oracle/aux/TSPITR_ORCL_BRDD/datafile/o1_mf_system_c9cjowoq_.dbf

datafile 2 switched to datafile copy

input datafile copy recid=6 stamp=901020119 filename=/u01/app/oracle/aux/TSPITR_ORCL_BRDD/datafile/o1_mf_undotbs1_c9cjowqp_.dbf





sql statement: alter database datafile  1 online





sql statement: alter database datafile  2 online





sql statement: alter database datafile  6 online





Starting recover at 13-JAN-16

using channel ORA_AUX_DISK_1





starting media recovery





archive log thread 1 sequence 5 is already on disk as file /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2016_01_13/o1_mf_1_5_c9cj4xpn_.arc

archive log thread 1 sequence 6 is already on disk as file /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2016_01_13/o1_mf_1_6_c9cj5xdt_.arc

archive log thread 1 sequence 7 is already on disk as file /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2016_01_13/o1_mf_1_7_c9cj5yj9_.arc

archive log thread 1 sequence 8 is already on disk as file /u01/app/oracle/flash_recovery_area/ORCL/archivelog/2016_01_13/o1_mf_1_8_c9cj63xy_.arc

archive log filename=/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2016_01_13/o1_mf_1_5_c9cj4xpn_.arc thread=1 sequence=5

archive log filename=/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2016_01_13/o1_mf_1_6_c9cj5xdt_.arc thread=1 sequence=6

archive log filename=/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2016_01_13/o1_mf_1_7_c9cj5yj9_.arc thread=1 sequence=7

archive log filename=/u01/app/oracle/flash_recovery_area/ORCL/archivelog/2016_01_13/o1_mf_1_8_c9cj63xy_.arc thread=1 sequence=8

media recovery complete, elapsed time: 00:00:02

Finished recover at 13-JAN-16





database opened





contents of Memory Script:

{

# export the tablespaces in the recovery set

host 'exp userid =\"/@\(DESCRIPTION=\(ADDRESS=\(PROTOCOL=beq\)\(PROGRAM=/u01/app/oracle/product/10.2.0/bin/oracle\)\(ARGV0=oraclebrdd\)\(ARGS=^'\(DESCRIPTION=\(LOCAL=YES\)\(ADDRESS=\(PROTOCOL=beq\)\)\)^'\)\(ENVS=^'ORACLE_SID=brdd^'\)\)\(CONNECT_DATA=\(SID=brdd\)\)\)
as sysdba\" point_in_time_recover=y tablespaces=

 TEST file=

tspitr_a.dmp';

# shutdown clone before import

shutdown clone immediate

# import the tablespaces in the recovery set

host 'imp userid =\"/@ as sysdba\" point_in_time_recover=y file=

tspitr_a.dmp';

# online/offline the tablespace imported

sql "alter tablespace  TEST online";

sql "alter tablespace  TEST offline";

# enable autobackups in case user does open resetlogs from RMAN after TSPITR

sql 'begin dbms_backup_restore.AutoBackupFlag(TRUE); end;';

}

executing Memory Script









Export: Release 10.2.0.1.0 - Production on Wed Jan 13 11:22:15 2016





Copyright (c) 1982, 2005, Oracle.  All rights reserved.









Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options

Export done in US7ASCII character set and AL16UTF16 NCHAR character set

server uses UTF8 character set (possible charset conversion)

Note: table data (rows) will not be exported





About to export Tablespace Point-in-time Recovery objects...

For tablespace TEST ...

. exporting cluster definitions

. exporting table definitions

. . exporting table                           TEST

. exporting referential integrity constraints

. exporting triggers

. end point-in-time recovery

Export terminated successfully without warnings.

host command complete





database closed

database dismounted

Oracle instance shut down









Import: Release 10.2.0.1.0 - Production on Wed Jan 13 11:22:30 2016





Copyright (c) 1982, 2005, Oracle.  All rights reserved.









Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, OLAP and Data Mining options





Export file created by EXPORT:V10.02.01 via conventional path

About to import Tablespace Point-in-time Recovery objects...

import done in US7ASCII character set and AL16UTF16 NCHAR character set

import server uses UTF8 character set (possible charset conversion)

. importing SYS's objects into SYS

. . importing table                         "TEST"

Import terminated successfully without warnings.

host command complete





sql statement: alter tablespace  TEST online





sql statement: alter tablespace  TEST offline





sql statement: begin dbms_backup_restore.AutoBackupFlag(TRUE); end;





Removing automatic instance

Automatic instance removed

auxiliary instance file /u01/app/oracle/aux/cntrl_tspitr_ORCL_brdd.f deleted

auxiliary instance file /u01/app/oracle/aux/TSPITR_ORCL_BRDD/datafile/o1_mf_system_c9cjowoq_.dbf deleted

auxiliary instance file /u01/app/oracle/aux/TSPITR_ORCL_BRDD/datafile/o1_mf_undotbs1_c9cjowqp_.dbf deleted

auxiliary instance file /u01/app/oracle/aux/TSPITR_ORCL_BRDD/datafile/o1_mf_temp_c9cjq24h_.tmp deleted

auxiliary instance file /u01/app/oracle/aux/TSPITR_ORCL_BRDD/onlinelog/o1_mf_1_c9cjptyy_.log deleted

auxiliary instance file /u01/app/oracle/aux/TSPITR_ORCL_BRDD/onlinelog/o1_mf_2_c9cjpwoo_.log deleted

auxiliary instance file /u01/app/oracle/aux/TSPITR_ORCL_BRDD/onlinelog/o1_mf_3_c9cjpzph_.log deleted

Finished recover at 13-JAN-16





RMAN> 





------------表空间上线----------

SYS@ORCL>alter database datafile 6 online;





Database altered.





SYS@ORCL>desc dba_tablespaces;

 Name                                      Null?    Type

 ----------------------------------------- -------- ----------------------------

 TABLESPACE_NAME                           NOT NULL VARCHAR2(30)

 BLOCK_SIZE                                NOT NULL NUMBER

 INITIAL_EXTENT                                     NUMBER

 NEXT_EXTENT                                        NUMBER

 MIN_EXTENTS                               NOT NULL NUMBER

 MAX_EXTENTS                                        NUMBER

 PCT_INCREASE                                       NUMBER

 MIN_EXTLEN                                         NUMBER

 STATUS                                             VARCHAR2(9)

 CONTENTS                                           VARCHAR2(9)

 LOGGING                                            VARCHAR2(9)

 FORCE_LOGGING                                      VARCHAR2(3)

 EXTENT_MANAGEMENT                                  VARCHAR2(10)

 ALLOCATION_TYPE                                    VARCHAR2(9)

 PLUGGED_IN                                         VARCHAR2(3)

 SEGMENT_SPACE_MANAGEMENT                           VARCHAR2(6)

 DEF_TAB_COMPRESSION                                VARCHAR2(8)

 RETENTION                                          VARCHAR2(11)

 BIGFILE                                            VARCHAR2(3)





SYS@ORCL>select TABLESPACE_NAME,STATUS from dba_tablespaces;





TABLESPACE_NAME                STATUS

------------------------------ ---------

SYSTEM                         ONLINE

UNDOTBS1                       ONLINE

SYSAUX                         ONLINE

TEMP                           ONLINE

USERS                          ONLINE

EXAMPLE                        ONLINE

TEST                           OFFLINE





7 rows selected.





SYS@ORCL>alter tablespace test online;





Tablespace altered.





SYS@ORCL>select * from test;





         X

----------

         1

         2

tspitr(tablespace point in time recovery)实验的更多相关文章

  1. How to recover a skipped tablespace after an incomplete recovery with resetlogs? [ID 1561645.1]

    n this Document   Goal   Solution This document is being delivered to you via Oracle Support's Rapid ...

  2. How to recover a skipped tablespace after an incomplete recovery? (Doc ID 1561645.1)

    How to recover a skipped tablespace after an incomplete recovery? (Doc ID 1561645.1) APPLIES TO: Ora ...

  3. [20170627]使用TSPITR恢复表空间.txt

    [20170627]使用TSPITR恢复表空间.txt --//RMAN提供了一种实现所谓TSPITR(Tablespace Point-In-Time Recovery)的技术,通过简单的一个语句, ...

  4. Oracle数据库备份实验笔记[不完整,内容乱]

    rman target / log=/orasoft/backup/${DATE}backup1.log <<EOFrun {allocate channel c1 device type ...

  5. RMAN Restore, Recovery

    Complete recovery: rman target / nocatalog startup mount; restore database; recover database; alter ...

  6. 故障排除指南(TSG)-ORA-01552: Cannot Use System Rollback Segment for Non-System Tablespace (Doc ID 1579215.1)

    Troubleshooting Guide (TSG) - ORA-01552: Cannot Use System Rollback Segment for Non-System Tablespac ...

  7. ocp 1Z0-043 1-60题解析

    1.You observe that a database performance has degraded overa period of time. While investigating the ...

  8. ocp11g培训内部教材_053课堂笔记(043)_数据备份

    053:数据库高级管理: 目录 第一部分:数据库备份与恢复... 4 第一章:备份恢复概述... 4 1.1 备份的意义: 4 1.2 数据库故障的类型:... 4 1.3 制定你的备份和恢复的计划. ...

  9. 【RMAN】TSPITR--RMAN表空间基于时间点的自动恢复

    [RMAN]TSPITR--RMAN表空间基于时间点的自动恢复 一.1  BLOG文档结构图 一.2  前言部分 一.2.1  导读 各位技术爱好者,看完本文后,你可以掌握如下的技能,也可以学到一些其 ...

随机推荐

  1. Switchover and Failover说明

    SWITCHOVER Switchover是有计划的将primary切换为standby,standby切换为primary.在主库结束生产后,备库应用完所有主库archivelog或者redo lo ...

  2. HTML高级标签之表格标签

    前面学习了一下HTML的经常使用标签, 今天開始高级标签之路! 一.表格标签 1.作用: 创建一张表格 2.各属性作用: <table cellspacing="0" cel ...

  3. 关于React中,map出来的元素添加事件问题

    用es6 map 的写法 直接绑定一个onTouchStart 事件不会报错. 用es5的map写法  如果不加上this  会报这个错误 无法读取未定义的属性 解决的方法是 绑定this  就可以了

  4. ASP.NET Core 2.2 十九. 你扔过来个json,我怎么接

    原文:ASP.NET Core 2.2 十九. 你扔过来个json,我怎么接 前文说道了Action的激活,这里有个关键的操作就是Action参数的映射与模型绑定,这里即涉及到简单的string.in ...

  5. 基于mpvue的小程序项目搭建的步骤

    mpvue 是美团开源的一套语法与vue.js一致的.快速开发小程序的前端框架,按官网说可以达到小程序与H5界面使用一套代码.使用此框架,开发者将得到完整的 Vue.js 开发体验,同时为 H5 和小 ...

  6. oracle里long类型的总结

    转自原文oracle中long类型为什么不推荐使用 不是不推荐使用的,是一般用不到,而有些时候是会用到的,所以不能一概而论.1.LONG 数据类型中存储的是可变长字符串,最大长度限制是2GB.2.对于 ...

  7. UVA10006 - Carmichael Numbers(筛选构造素数表+高速幂)

    UVA10006 - Carmichael Numbers(筛选构造素数表+高速幂) 题目链接 题目大意:假设有一个合数.然后它满足随意大于1小于n的整数a, 满足a^n%n = a;这种合数叫做Ca ...

  8. 像Bootstrap一样比较热门的前端框架有哪些

    像Bootstrap一样比较热门的前端框架有哪些 一.总结 一句话总结:框架大同小异,可以多去各自官网看看效果(比较一下各自的不同点(也就是提供的不同的功能)),然后根据需求选择用哪个.我觉得boot ...

  9. java学习笔记之基础语法(一)

    1.java语言基础由关键字.标识符.注释.常量和变量.运算符.语句.函数和数组等组成. 2.1关键字 定义:被java语言赋予了特殊含义的单词 特点:关键字中所有的字母都是小写. 2.2用于定义数据 ...

  10. JSONP的使用示例(以及jquery版jsonp)超简单

    前言: 平时工作中很少跨域,很少用到jsonp,但是几乎每次面试都会被问到这个问题.很崩溃. 菜鸟教程上的jsonp教程就很好.这里做个笔记,自己捋一遍. Jsonp(JSON with Paddin ...