首页 > 其他分享 >Camstar Create Transaction Database

Camstar Create Transaction Database

时间:2024-10-09 14:36:22浏览次数:8  
标签:Transaction Camstar grant -- Create GRANT SYS INSITE CamstarAdmin

sql server

USE [master]
GO
-- Create database
CREATE DATABASE INSITE
ON
PRIMARY 
(
NAME='INSITE',
FILENAME='C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\INSITE.mdf',
SIZE=100MB,
FileGrowth=10%
)
LOG ON 
(
NAME='INSITE_Log',
FileName='C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\DATA\INSITE_Log.ldf',
Size=10MB,
FileGrowth=10%
)
collate SQL_Latin1_General_CP1_CI_AS--(需要更改,看数据库的属性,如下图)
GO
-- Alter Recovery Model to SIMPLE when install non-production environment
ALTER DATABASE INSITE
SET RECOVERY SIMPLE
GO
-- Create Login User
CREATE LOGIN INSITE
WITH PASSWORD = 'INSITE',
DEFAULT_DATABASE = [INSITE],
CHECK_EXPIRATION=OFF, 
CHECK_POLICY=OFF
GO

USE [INSITE]
GO
-- Create Database User
CREATE USER [INSITE] 
FOR LOGIN [INSITE] 
GO
-- Create Database Schema
CREATE SCHEMA [insite]
GO
-- Reauthorization Database Schema Owner
ALTER USER INSITE WITH DEFAULT_SCHEMA = insite
GO
ALTER AUTHORIZATION ON SCHEMA::[insite] TO INSITE
GO

-- Grant Database Permissions
GRANT ALTER TO INSITE;
GRANT AUTHENTICATE TO INSITE;
GRANT CONNECT TO INSITE;
GRANT CREATE DEFAULT TO INSITE;
GRANT CREATE FUNCTION TO INSITE;
GRANT CREATE PROCEDURE TO INSITE;
GRANT CREATE TABLE TO INSITE;
GRANT CREATE VIEW TO INSITE;
GRANT DELETE TO INSITE;
GRANT EXECUTE TO INSITE;
GRANT INSERT TO INSITE;
GRANT REFERENCES TO INSITE;
GRANT SELECT TO INSITE;
GRANT SHOWPLAN TO INSITE;
GRANT UPDATE TO INSITE;

 oracle

--TableSpace仅供参考,创建表控件,用户名,赋权限
----------------------------------------------------------------------
CREATE TABLESPACE tbs_camstardb DATAFILE 
  'C:\app\Jedha\product\12.1.0\dbhome_1\oradata\sample\tbs_camstardb.DBF' SIZE 2048M AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED
LOGGING
ONLINE
PERMANENT
EXTENT MANAGEMENT LOCAL AUTOALLOCATE
BLOCKSIZE 8K
SEGMENT SPACE MANAGEMENT AUTO
FLASHBACK ON;
commit;

----------------------------------------------------------------------
-- Create the user 
create user CamstarAdmin
identified by CamstarAdmin
default tablespace tbs_camstardb
temporary tablespace TEMP
profile DEFAULT;

----------------------------------------------------------------------
--Role
-- Grant/Revoke object privileges 
grant execute on SYS.DBMS_APPLICATION_INFO to CamstarAdmin;
grant execute on SYS.DBMS_DATAPUMP to CamstarAdmin;
grant execute on SYS.DBMS_DATAPUMP_UTL to CamstarAdmin;
grant execute on SYS.DBMS_DB_VERSION to CamstarAdmin;
grant execute on SYS.DBMS_DEBUG_JDWP to CamstarAdmin;
grant execute on SYS.DBMS_JOB to CamstarAdmin;
grant execute on SYS.DBMS_LOB to CamstarAdmin;
grant execute on SYS.DBMS_LOCK to CamstarAdmin;
grant execute on SYS.DBMS_PIPE to CamstarAdmin;
grant execute on SYS.DBMS_RANDOM to CamstarAdmin;
grant execute on SYS.DBMS_SCHEDULER to CamstarAdmin;
grant execute on SYS.DBMS_UTILITY to CamstarAdmin;
grant select on SYS.GV_$INSTANCE to CamstarAdmin;
grant select on SYS.V_$INSTANCE to CamstarAdmin;
-- Grant/Revoke role privileges 
grant connect to CamstarAdmin;
grant resource to CamstarAdmin;
grant SELECT_CATALOG_ROLE to CamstarAdmin;
grant CTXAPP to CamstarAdmin;
--grant MGMT_USER to CamstarAdmin;
-- Grant/Revoke system privileges
grant create session to CamstarAdmin ; 
grant create table to CamstarAdmin;
grant create database link to CamstarAdmin;
grant create job to CamstarAdmin;
grant create materialized view to CamstarAdmin;
grant create procedure to CamstarAdmin;
grant create sequence to CamstarAdmin;
grant create synonym to CamstarAdmin;
grant create trigger to CamstarAdmin;
grant create type to CamstarAdmin;
grant create view to CamstarAdmin;
grant create any context to CamstarAdmin;
grant select any dictionary to CamstarAdmin;
grant select any table to CamstarAdmin;
grant Create Dimension to CamstarAdmin;
grant Create Library to CamstarAdmin;
grant Create Rule to CamstarAdmin;
grant unlimited tablespace to CamstarAdmin;
commit;

 

标签:Transaction,Camstar,grant,--,Create,GRANT,SYS,INSITE,CamstarAdmin
From: https://www.cnblogs.com/CarryYou-lky/p/18454151

相关文章

  • transaction_timeout:达到事务超时时终止会话
    功能实现背景说明我们已经有两个参数来控制长事务:statement_timeout和idle_in_transaction_session_timeout。但是,如果事务执行的命令足够短且不超过statement_timeout,并且命令之间的暂停时间适合idle_in_transaction_session_timeout,则事务可以无限期持续。在这种情况下,tra......
  • 【linux】linux unable to create new native thread
    1.概述今天遇到一个问题unabletocreatenewnativethread但是看着代码这里应该不会报错,出现这个问题该怎么排查呢?当在Linux系统中出现“unabletocreatenewnativethread”错误时,通常是由于达到了系统可用的进程或线程数量限制导致的。这个错误表示系统无法......
  • 如何投IEEE论文(Transactions on Cybernetics为例)
    文章目录1.下载对应的论文模板2.进入提交论文信息的界面3.填写论文中必要的信息3.1ArticleType3.2UploadManuscript3.3Title3.4Abstract3.5Authors3.6AuthorDetails3.7MathOrganizations3.8AdditionalInformation3.9FinalReview终审1.下载对应的论......
  • 深入理解 Nuxt.js 中的 app:created 钩子
    title:深入理解Nuxt中的appcreated钩子date:2024/9/26updated:2024/9/26author:cmdragonexcerpt:摘要:本文深入介绍了Nuxt.js中的app:created钩子,包括其触发时机、用途及使用方法。通过创建Nuxt项目、编写插件实现钩子、注册全局组件和配置,展示了在应用初始......
  • Create a .pem File for TLS/SSL Certificate Installations
    .pemTLS/SSLCreationInstructionsSSL.pemfiles(concatenatedcertificatecontainerfiles),arefrequentlyrequiredforcertificateinstallationswhenmultiplecertificatesarebeingimportedasonefile.Thisarticlecontainsmultiplesetsofinstructi......
  • Docker-compose 启动 mysql 报错 ERROR: for mysql Cannot start service mysql: fai
    报错详情root@hadoop107cmp]#docker-composeconfig-q[root@hadoop107cmp]#ll总用量70192-rw-r--r--.1rootroot718650749月2406:45docker-boot-0.0.1-SNAPSHOT.jar-rw-r--r--.1rootroot10149月2408:26docker-compose.yml-rw-r--r--.1rootro......
  • 4. VM是如何初始化的-create_vm()
    前言在3.初窥全貌-main方法执行全流程-CSDN博客,我们了解了一个Java类的main函数在执行java命令到最终被执行的全路径,但是那里面最重要的三步1.创建vm;2.加载main类;3.执行main方法;我们并没有展开学习,这一章,我们从创建VM开始学习,这是整个系列里最重的函数。流程很多,但......
  • ORA-01558: out of transaction ID’s in rollback segment SYSTEM
    联系:手机/微信(+8617813235971)QQ(107644445)标题:ORA-01092ORA-00604ORA-01558故障处理作者:惜分飞©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]客户一个11.2.0.1的库,在重启之前报ORA-00604和ORA-01558:outoftransactionID’sinrol......
  • INTERNAL ERROR: cannot create temporary directory! /dev/mapper/centos-root满了
    一.问题现象磁盘空间不足[root@dockerfileharbor]#docker-composeup-d[2216]INTERNALERROR:cannotcreatetemporarydirectory![root@dockerfileharbor]#docker-composeupstopFailedtowriteallbytesforcryptography/hazmat/bindings/_openssl.abi3.sofwrite......
  • Assembly.CreateInstance 方法和Activator.CreateInstance 方法(C#)
    1.Assembly.CreateInstance从程序集中查找某个类型,然后使用系统激活器创建它的实例,有以下三种方式实现:CreateInstance(String)使用区分大小写的搜索,从此程序集中查找指定的类型,然后使用系统激活器创建它的实例。CreateInstance(String,Boolean)使用可选的区分大小写......