zoukankan      html  css  js  c++  java
  • 【内存数据库】OracleTimesten连接DSN创建用户

    ************************************************************************
    ****原文:blog.csdn.net/clark_xu  徐长亮的专栏
    ************************************************************************

    1.       启动开启

    [tt@host2 info]$ ttDaemonAdmin -start -force

    /home/tt/TimesTen/tt1122/info/timestend.pid file exists, attempt start due to -force option.

    TimesTen Daemon startup OK.

    2.       加入測试使用DSN: test_1122

    Vi Info/sys.odbc.ini

    test_1122=TimesTen 11.2.2 Driver

    [test_1122]

    Driver=/home/tt/TimesTen/tt1122/lib/libtten.so

    DataStore=/home/tt/TimesTen/tt1122/info/DemoDataStore/test_1122

    PermSize=40

    TempSize=32

    PLSQL=1

    DatabaseCharacterSet=US7ASCII

    3.       连接test_1122

    [tt@host2 info]$ ttIsql test_1122

     

    Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.

    Type ? or "help" for help, type "exit" to quit ttIsql.

    4.       创建用户

    Command> create user scott identified by tiger;

     

    User created.

     

    Command> grant create table to scott;

    Command> grant connect to scott;

    Command> grant create view to scott;

    Command> grant dba to scott;

    15111: Invalid privilege: DBA.  Roles are not supported.

    The command failed.

    5.       cache group管理权限

    Command> grant create session,admin,cache_manager to scott;

    15140: GRANT failed: User SCOTT already has system privilege CREATE SESSION

    The command failed.

    Command> grant admin,cache_manager to scott;

    connect "DSN=test_1122";

    Connection successful: DSN=test_1122;UID=tt;DataStore=/home/tt/TimesTen/tt1122/info/DemoDataStore/test_1122;DatabaseCharacterSet=US7ASCII;ConnectionCharacterSet=US7ASCII;DRIVER=/home/tt/TimesTen/tt1122/lib/libtten.so;PermSize=40;TempSize=32;TypeMode=0;

    (Default setting AutoCommit=1)

  • 相关阅读:
    C#实现程序的版本升级更新
    c#获取系统内存等信息
    C# 时间格式设置
    SMS(System Management Server)学习笔记。
    C#调用WMI获取本机MAC地址列表。
    sharepoint portal service 一处隐蔽应用。
    ubuntu安装显卡驱动后亮度不能调节问题
    linux下boost编译及链接到系统目录
    在windows下修改右键菜单以实现使用vs2010快速编译代码
    vs2010使用boost::interpocess编译出错
  • 原文地址:https://www.cnblogs.com/tlnshuju/p/7119855.html
Copyright © 2011-2022 走看看