Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc8cd08

Browse files
committed
improvements to contributing guide, added shell scripts to simplify development work
1 parent 0d017be commit fc8cd08

5 files changed

Lines changed: 58 additions & 0 deletions

File tree

development/cleanup.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
"${SQLCLI}" sys/${ORACLE_PWD}@//${CONNECTION_STR} AS SYSDBA <<-SQL
4+
drop user ${UT3_OWNER} cascade;
5+
drop user ${UT3_RELEASE_VERSION_SCHEMA} cascade;
6+
drop user ${UT3_TESTER} cascade;
7+
drop user ${UT3_USER} cascade;
8+
9+
begin
10+
for i in (
11+
select decode(owner,'PUBLIC','drop public synonym "','drop synonym "'||owner||'"."')|| synonym_name ||'"' drop_orphaned_synonym from dba_synonyms a
12+
where not exists (select null from dba_objects b where a.table_name=b.object_name and a.table_owner=b.owner )
13+
and a.table_owner in ('${UT3_OWNER}','${UT3_RELEASE_VERSION_SCHEMA}','${UT3_TESTER}','${UT3_USER}')
14+
) loop
15+
execute immediate i.drop_orphaned_synonym;
16+
end loop;
17+
end;
18+
/
19+
exit
20+
SQL

development/env.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
export UT3_OWNER=ut3
4+
export UT3_OWNER_PASSWORD=ut3
5+
export UT3_RELEASE_VERSION_SCHEMA=ut3_latest_release
6+
export UT3_TESTER=ut3_tester
7+
export UT3_TESTER_PASSWORD=ut3
8+
export UT3_TABLESPACE=users
9+
export UT3_USER="UT3\$USER#"
10+
export UT3_USER_PASSWORD=ut3
11+
export UTPLSQL_DIR="utPLSQL_latest_release"
12+
export SQLCLI=sql # For sqlcl client
13+
#export SQLCLI=sqlplus # For sqlplus client
14+
export CONNECTION_STR=127.0.0.1:1521/xe # Adjust the connect string
15+
export ORACLE_PWD=oracle
16+

development/install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
cd $(git rev-parse --show-cdup)
4+
5+
development/env.sh
6+
development/cleanup.sh
7+
.travis/install.sh
8+
.travis/install_utplsql_release.sh
9+
.travis/create_additional_grants_for_old_tests.sh

development/refresh.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
cd $(git rev-parse --show-cdup)
4+
5+
development/env.sh
6+
7+
cd source
8+
9+
"${SQLCLI}" sys/${ORACLE_PWD}@//${CONNECTION_STR} AS SYSDBA <<-SQL
10+
@uninstall ${UT3_OWNER}
11+
@install ${UT3_OWNER}
12+
exit
13+
SQL

development/utPSLQLv3-modules.png

21.2 KB
Loading

0 commit comments

Comments
 (0)