[openxs@fc23 maria10.1]$ export TNS_ADMIN=/etc/oracle
|
[openxs@fc23 maria10.1]$ export ORACLE_HOME=/usr/lib/oracle/11.2/client64
|
[openxs@fc23 maria10.1]$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
|
[openxs@fc23 maria10.1]$ export PATH=$PATH:$ORACLE_HOME/bin
|
[openxs@fc23 maria10.1]$ sudo ldconfig
|
[sudo] password for openxs:
|
[openxs@fc23 maria10.1]$ sqlplus system/oracle@localhost:1521/xe.oracle.docker
|
|
SQL*Plus: Release 11.2.0.4.0 Production on Mon Apr 3 11:18:36 2017
|
|
Copyright (c) 1982, 2013, Oracle. All rights reserved.
|
|
|
Connected to:
|
Oracle Database 12c Standard Edition Release 12.1.0.2.0 - 64bit Production
|
|
SQL> create table scott.t1(c1 number(30));
|
|
Table created.
|
|
SQL> insert into scott.t1 values (1234567890);
|
|
1 row created.
|
|
SQL> select * from scott.t1;
|
|
C1
|
----------
|
1234567890
|
|
SQL> exit
|
Disconnected from Oracle Database 12c Standard Edition Release 12.1.0.2.0 - 64bit Production
|
[openxs@fc23 maria10.1]$ isql -v oracle
|
+---------------------------------------+
|
| Connected! |
|
| |
|
| sql-statement |
|
| help [tablename] |
|
| quit |
|
| |
|
+---------------------------------------+
|
SQL> select * from scott.t1;
|
+---------------------------------+
|
| C1 |
|
+---------------------------------+
|
| 1234567890 |
|
+---------------------------------+
|
SQLRowCount returns -1
|
1 rows fetched
|
SQL> quit
|
[openxs@fc23 maria10.1]$ bin/mysqld_safe --no-defaults &
|
[1] 21391
|
[openxs@fc23 maria10.1]$ 170403 11:19:49 mysqld_safe Logging to '/home/openxs/dbs/maria10.1/data/fc23.err'.
|
170403 11:19:50 mysqld_safe Starting mysqld daemon with databases from /home/openxs/dbs/maria10.1/data
|
|
[openxs@fc23 maria10.1]$ bin/mysql -uroot test
|
Reading table information for completion of table and column names
|
You can turn off this feature to get a quicker startup with -A
|
|
Welcome to the MariaDB monitor. Commands end with ; or \g.
|
Your MariaDB connection id is 2
|
Server version: 10.1.23-MariaDB Source distribution
|
|
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
|
|
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
|
MariaDB [test]> show engines;
|
+--------------------+---------+--------------------------------------------------------------------------------------------------+--------------+------+------------+
|
| Engine | Support | Comment | Transactions | XA | Savepoints |
|
+--------------------+---------+--------------------------------------------------------------------------------------------------+--------------+------+------------+
|
| MRG_MyISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
|
| CSV | YES | CSV storage engine | NO | NO | NO |
|
| MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
|
| MyISAM | YES | MyISAM storage engine | NO | NO | NO |
|
| CONNECT | YES | Management of External Data (SQL/MED), including many file formats | NO | NO | NO |
|
| SEQUENCE | YES | Generated tables filled with sequential values | YES | NO | YES |
|
| Aria | YES | Crash-safe tables with MyISAM heritage | NO | NO | NO |
|
| PERFORMANCE_SCHEMA | YES | Performance Schema | NO | NO | NO |
|
| InnoDB | DEFAULT | Percona-XtraDB, Supports transactions, row-level locking, foreign keys and encryption for tables | YES | YES | YES |
|
+--------------------+---------+--------------------------------------------------------------------------------------------------+--------------+------+------------+
|
9 rows in set (0.00 sec)
|
|
MariaDB [test]> create table t1_oracle engine=connect table_type=ODBC tabname='scott.t1' connection='dsn=oracle';
|
ERROR 1105 (HY000): Cannot get columns from scott.t1
|
MariaDB [test]> create table t1_oracle engine=connect table_type=ODBC tabname='t1' dbname='scott' connection='dsn=oracle';
|
ERROR 1105 (HY000): Cannot get columns from t1
|