GithubHelp home page GithubHelp logo

oracle-apex's Introduction

Origin

files for setup are taken from:

https://github.com/akridge/oracle-apex-docker-stack

from apex official part:

https://github.com/akridge/oracle-apex-docker-stack/tree/main/oracle-apex-offical

Connection

  • Default user: system or sys
  • Default password: one defined in docker compose
  • Default host: localhost
  • Default database name: xe

Apex connection

default apex url:

http://localhost:8181
| INFO : APEX ADMIN password has configured as 'Welcome_1'.
| INFO : Use below login credentials to first time login to APEX service:
|               Workspace: internal
|               User:      ADMIN
|               Password:  Welcome_1

Scripts

create developer users:

CREATE USER banka IDENTIFIED BY bank;

GRANT CREATE SESSION, CREATE TABLE, CREATE VIEW, CREATE PROCEDURE, CREATE SEQUENCE, CREATE TRIGGER,UNLIMITED TABLESPACE TO bank;

create accounts users:

CREATE USER am IDENTIFIED BY am;

GRANT CREATE SESSION TO am;

fill data:

create table accounts (
  id       number primary key
 ,owner    varchar2(30)
 ,balance    number
)
;

alter table accounts
add constraint non_negative_balance_chk check (balance >= 0)
;


create sequence trxs_seq
start with 1
increment by 1
;

create table trxs (
  id              number primary key
 ,created_at       date
)
;

create table trx_items(
   id        number primary key
 , trx_id    number references trxs (id)
 , acc_id    number references accounts (id)
 , type       varchar2(1) 
 , amount     number
 , CONSTRAINT trx_type CHECK (type in ('C', 'D'))
)
;


create sequence trx_line_seq
start with 1
increment by 1
;

insert into accounts (
 id, owner, balance
)
values (
  1
  , 'am'
  , 0
)
;


insert into accounts (
 id, owner, balance
)
values (
  2
  , 'kb'
  , 100
)
;


insert into accounts (
 id, owner, balance
)
values (
  3
  , 'zg'
  , 50
)
;


commit;

Database parameters

Helper selects for metadata about database and schema

Database version

SELECT * FROM v$version;

oracle-apex's People

Contributors

aurelo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.