-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
971 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
language: c | ||
services: | ||
- docker | ||
env: | ||
- ORACLE_HOME=$HOME/instantclient_18_3 LD_LIBRARY_PATH=$ORACLE_HOME PATH=$ORACLE_HOME:$PATH | ||
addons: | ||
apt: | ||
update: true | ||
packages: | ||
- libpopt-dev | ||
sudo: required | ||
before_install: | ||
- echo "$DOCKER_PASSWORD" | docker login --username $DOCKER_USERNAME --password-stdin | ||
- docker run --detach | ||
--privileged | ||
--publish 127.0.0.1:1521:1521 | ||
--env ORACLE_PWD | ||
maxsatula/agile:18.4.0-xe | ||
- | | ||
(cd $HOME | ||
for t in basic sdk sqlplus tools | ||
do | ||
f=instantclient-${t}-linux.x64-18.3.0.0.0dbru.zip | ||
wget https://github.com/bumpx/oracle-instantclient/raw/master/$f | ||
unzip -q $f && rm $f | ||
done) | ||
- .travis/oracle/wait.sh | ||
- .travis/oracle/customize.sh | ||
before_script: autoreconf --install | ||
script: ./configure --with-oci=y --with-oci-include=$ORACLE_HOME/sdk/include --with-oci-lib=$ORACLE_HOME && make && .travis/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh -e | ||
|
||
sqlplus -L -S sys/$ORACLE_PWD@127.0.0.1:1521/XEPDB1 AS SYSDBA <<SQL | ||
CREATE USER ocptest IDENTIFIED BY test; | ||
GRANT CREATE SESSION, | ||
CREATE TYPE, | ||
CREATE PROCEDURE, | ||
CREATE JOB | ||
TO ocptest; | ||
GRANT READ, WRITE | ||
ON DIRECTORY data_pump_dir | ||
TO ocptest; | ||
GRANT EXECUTE | ||
ON utl_file | ||
TO ocptest; | ||
GRANT SELECT | ||
ON v_\$session | ||
TO ocptest; | ||
BEGIN | ||
FOR d IN (SELECT directory_path | ||
FROM dba_directories | ||
WHERE directory_name = 'DATA_PUMP_DIR') LOOP | ||
dbms_java.grant_permission( 'OCPTEST', 'SYS:java.io.FilePermission', d.directory_path, 'read' ); | ||
dbms_java.grant_permission( 'OCPTEST', 'SYS:java.io.FilePermission', d.directory_path || '/*', 'read' ); | ||
END LOOP; | ||
END; | ||
/ | ||
SQL | ||
|
||
expdp system/$ORACLE_PWD@127.0.0.1:1521/XEPDB1 logfile=expdp_system.log dumpfile=somefile.dmp directory=data_pump_dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh -e | ||
|
||
docker logs --follow $(docker ps -lq) & | ||
tail_pid=$! | ||
|
||
until docker logs $(docker ps -lq) | grep "#########################" | ||
do | ||
sleep 15 | ||
done | ||
|
||
kill $tail_pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh -e | ||
PATH=$PATH:$PWD/src | ||
CON=ocptest/test@localhost:1521/XEPDB1 | ||
|
||
ocp $CON --list-directories | ||
ocp $CON DATA_PUMP_DIR:somefile.dmp localfile.dmp | ||
ocp $CON -9 DATA_PUMP_DIR:somefile.dmp onthefly.dmp | ||
ocp $CON -9 onthefly.dmp DATA_PUMP_DIR: | ||
ocp $CON --gzip DATA_PUMP_DIR:somefile.dmp | ||
ocp $CON --install | ||
ocp $CON --ls DATA_PUMP_DIR | ||
ocp $CON --rm DATA_PUMP_DIR:onthefly.dmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
2019-01-12 Max Satula <[email protected]> | ||
|
||
* Allow connection as SYSASM, SYSBKP, SYSDGD, SYSKMT, and SYSRAC | ||
|
||
2017-07-16 Max Satula <[email protected]> | ||
|
||
* Add man page | ||
|
||
2017-07-12 Max Satula <[email protected]> | ||
|
||
* Fix crash in --ls when Oracle directory object points | ||
to a nonexistent directory | ||
* Do not print column names if no files found in --ls | ||
|
||
2016-04-18 Max Satula <[email protected]> | ||
|
||
* Fix compiler warnings | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
ACLOCAL_AMFLAGS = -I m4 | ||
SUBDIRS = progressmeter yesno src | ||
dist_noinst_SCRIPTS = updateforeigns.sh win/build.cmd | ||
dist_noinst_DATA = m4/ax_lib_oracle_oci.m4.patch win/README.md | ||
dist_noinst_DATA = README.md win/README.md | ||
dist_noinst_HEADERS = win/include/config.h win/include/unistd.h | ||
dist_man1_MANS = ocp.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Process this file with autoconf to produce a configure script. | ||
|
||
AC_PREREQ([2.63]) | ||
AC_INIT([ocp],[0.2],[Max Satula <[email protected]>]) | ||
AC_INIT([ocp],[0.3],[Max Satula <[email protected]>]) | ||
AM_INIT_AUTOMAKE | ||
AC_CONFIG_MACRO_DIR([m4]) | ||
AC_CONFIG_SRCDIR([src/ocp.h]) | ||
|
@@ -20,18 +20,18 @@ AC_SYS_LARGEFILE | |
# Checks for libraries. | ||
AX_LIB_ORACLE_OCI | ||
if test "x${HAVE_ORACLE_OCI}" = xno; then | ||
AC_MSG_ERROR([---------------------------------------------- | ||
AC_MSG_ERROR([ | ||
---------------------------------------------- | ||
This software requires Oracle installation | ||
1. Have you set \$ORACLE_HOME? | ||
2. Check if Oracle Home 64/32-bit is OK | ||
3. Check whether native compiler (not GCC) | ||
is used for non-Linux platforms | ||
----------------------------------------------)]) | ||
----------------------------------------------]) | ||
fi | ||
AC_SUBST([ORACLE_OCI_CFLAGS]) | ||
AC_SUBST([ORACLE_OCI_LDFLAGS]) | ||
|
||
#AC_SEARCH_LIBS([OCIEnvCreate], [clntsh]) | ||
AC_SEARCH_LIBS([poptGetContext], [popt]) | ||
AC_SEARCH_LIBS([deflateInit2_], [z]) | ||
AC_SEARCH_LIBS([clock_gettime], [rt]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.