|
| 1 | +/*----------------------------------------------------------------------------- |
| 2 | + * Copyright (c) 2023, Oracle and/or its affiliates. |
| 3 | + * |
| 4 | + * This software is dual-licensed to you under the Universal Permissive License |
| 5 | + * (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License |
| 6 | + * 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose |
| 7 | + * either license.* |
| 8 | + * |
| 9 | + * If you elect to accept the software under the Apache License, Version 2.0, |
| 10 | + * the following applies: |
| 11 | + * |
| 12 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 13 | + * you may not use this file except in compliance with the License. |
| 14 | + * You may obtain a copy of the License at |
| 15 | + * |
| 16 | + * https://www.apache.org/licenses/LICENSE-2.0 |
| 17 | + * |
| 18 | + * Unless required by applicable law or agreed to in writing, software |
| 19 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 20 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 21 | + * See the License for the specific language governing permissions and |
| 22 | + * limitations under the License. |
| 23 | + *---------------------------------------------------------------------------*/ |
| 24 | + |
| 25 | +/*----------------------------------------------------------------------------- |
| 26 | + * create_schema_21.sql |
| 27 | + * |
| 28 | + * Performs the actual work of creating and populating the schemas with the |
| 29 | + * database objects used by the python-oracledb test suite that require Oracle |
| 30 | + * Database 21c or higher. It is executed by the Python script |
| 31 | + * create_schema.py. |
| 32 | + *---------------------------------------------------------------------------*/ |
| 33 | + |
| 34 | +create table &main_user..TestJson ( |
| 35 | + IntCol number(9) not null, |
| 36 | + JsonCol json not null |
| 37 | +) |
| 38 | +/ |
| 39 | + |
| 40 | +begin |
| 41 | + dbms_aqadm.create_queue_table('&main_user..JSON_QUEUE_TAB', 'JSON'); |
| 42 | + dbms_aqadm.create_queue('&main_user..TEST_JSON_QUEUE', |
| 43 | + '&main_user..JSON_QUEUE_TAB'); |
| 44 | + dbms_aqadm.start_queue('&main_user..TEST_JSON_QUEUE'); |
| 45 | +end; |
| 46 | +/ |
0 commit comments