on 2015 Jul 17 8:50 AM
Hi Youtian,
也可以直接使用EXPORT/IMPORT命令导出/导入schema。
EXPORT <export_import_object_name_list> AS <export_format> INTO <path> [WITH <export_option_list>]
<export_import_object_name> ::= [<schema_name>.]{<identifier> | "*" }
<schema_name> ::= <identifier>
You use [<schema_name>.]<identifier> to select specific objects in a schema for export.
You use <schema_name>."*" to select all objects within a schema for export.
<export_import_format> ::= BINARY | CSV
The export format.
Best regards,
Candy Zhan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
RENAME SCHEMA <rename_schema_list>
<rename_schema_list> ::= <rename_schema_token> [{, <rename_schema_list>}]
<rename_schema_token> ::= <source_schema> TO <target_schema>
It is possible to rename the objects' schema during import.
Multiple schemas can be renamed by specifying multiple <rename_schema_token>.
You cannot specify the same schema as both <source_schema> and <target_schema> in same or different <rename_schema_token>.
更多具体选项可以参考SAP Help Portal
IMPORT - SAP HANA SQL and System Views Reference - SAP Library
顺便再问一个SP的问题,方便起见就不另盖楼了:
HANA中的存储过程SP,想通过DU方式导出和发布,就建在content的package目录结构下,但是在这里建的话只能在studio里新建并且SQL Script方式、Read Only的属性是不能改的。问题是SP里是需要增删改数据的,所以这种方式不可行。
上述方式创建的SP其实也就是在_SYS_BIC下建了“package1/package2.../SP_NAME()"这样的SP和对应的table type,所以尝试直接用SQL方式在_SYS_BIC下创建类似命名结构的SP,可以正常使用,但是不会在content下生成、创建DU的时候也看不到...
有什么方式可以在content下创建可以增删改数据的SP?
另外,在SP中可以用truncate table吗?需要设置什么选项?
多谢!
使用studio登录之后,右键点击schema节点,然后export,在选择导出到server或者本地,指定好路径,就可以导出了,但是在导出之前请确定你对当前schema有export的权限,导出的时候最好选择将依赖的对象同时导出。
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.