Create Partition with Maxl
Hi All
I was trying to create a Partitioning with Maxl script and in the process Essbase went down. I logged back and try to create one partition then it is giving me error saying object database name does not exist.
I cannot see any partition for the database from EAS, but when i run the maxl command to display the object of type partition on the database then it is giving an entry.
I tried to drop it by the drop command but it doesnt work.
Can someone shed some light how to remove the object?
Regards
Celvin
I surmise, some Temporary partitioning file are created under Database folder.
Just get into Database folder and remove the following files in background if persists.
ddb - Partitioning definition file
ddm - Temporary partitioning file
ddn - Temporary partitioning file
Regards
Cnee
Similar Messages
-
Creating partitions using MaxL
<p>I know that you can export a partition manually to an XML file. Is there a way to import that XML file using MaxL?</p>
<p>I was curious about this as well a while back. Iam quite confident that you cannot import the xml file via Maxl. However, you could just script out the entire partitiondefinition in maxl and use this to create and update your partitionas needed. Sorry if this isn't the solution you were lookingfor.</p>
-
Created partition with bootcamp, Win 7 says cannot install on any partition
It asks me to choose which partition to load windows on, but on each one, including bootcamp, it's says it cannot install on that partition. Have deleted partition, started again only for the same thing to happen..........Help
page 22: Options Advanced: format "BOOTCAMP" (MSDOS/FAT) to NTFS.
Every support page for a product is best place to start with.
Installation Guide Instructions for all features and settings.
Boot Camp 4.0 FAQ Get answers to commonly asked Boot Camp questions.
Windows 7 FAQ Answers to commonly asked Windows 7 questions.
- support articles and tips, how to.
http://www.apple.com/support/bootcamp/ -
Maxl : creating partition
Hi, I want to create a partition using Maxl, but I have a problem with the mapping. I don't know have to set a void mapping with Maxl. Does anyone know about it ?? Thanks
Here's an example of one of my scripts. Hope it helps.spool on to '..\logs\create_partition.log';login 'admin' 'password' on 'server';alter system load application 'REPT';create replicated partition 'REV'.'REV'area '( ( (@LEVMBRS("KPIs","Lev0,KPIs") AND @IDESCENDANTS("Revenue"))) ( (@LEVMBRS("KPIs","Lev0,KPIs") AND @IDESCENDANTS("COGS")))( (@UDA "KPIs","cash_flow_partition_member") AND @IDESCENDANTS("Cash Flow"))) ( (@LEVMBRS("KPIs","Lev0,KPIs") AND @IDESCENDANTS("Net Units"))))((@LEVMBRS("Time","Lev0,Time") AND @IDESCENDANTS("FY03")))("Plan""Actuals""Draft")"Trans_Type" "Region" ( (@LEVMBRS("Product","Lev0,Product") AND @IDESCENDANTS("Product")))'to 'REPT'.'REPT' at 'server' as 'admin' identified by 'password'area '( ( (@LEVMBRS("Measures","Lev0,Measures") AND @IDESCENDANTS("Net Units"))) ( (@LEVMBRS("Measures","Lev0,Measures") AND @IDESCENDANTS("Revenue"))) ( (@LEVMBRS("Measures","Lev0,Measures") AND @IDESCENDANTS("COGS"))) ( (@UDA("Measures","cash_flow_partition_member") AND @IDESCENDANTS("Studio Cash Flow"))))( (@LEVMBRS("Time","Lev0,Time") AND @IDESCENDANTS("FY03")))("Plan""Actuals""Draft")"Development." ( (@LEVMBRS("Product","Lev0,Product") AND @IDESCENDANTS("Product")))'mapped globally ('"Trans_Type"','"Region"') to ('','"Development."')update allow;logout;exit;
-
Hi,I want to create a partition using Maxl, but I have a problem with the mapping. I don't know have to set a void mapping with Maxl.Does anyone know about it ??Thanks
I surmise, some Temporary partitioning file are created under Database folder.
Just get into Database folder and remove the following files in background if persists.
ddb - Partitioning definition file
ddm - Temporary partitioning file
ddn - Temporary partitioning file
Regards
Cnee -
How do I create a Boot Camp partition with Windows & blank NTFS partitions?
I'm trying to create this kind of setup:
OS X partition
Windows 7 partition
blank NTFS partition (no OS)
blank NTFS partition (no OS)
This would be much easier if I created just the OS X partition and the Windows 7 partition with the Boot Camp Assistant tool (done this many times before successfully on other computers). The problem begins when I try to split the Boot Camp partition through the Windows 7 DVD partition manager during setup by deleting the Boot Camp partition, and recreating three partitions from the unallocated space. After installing Windows 7 on one of those new three partitions, I'm getting all kinds of startup errors when I try to install the Boot Camp drivers.
What would the best way to achieve this setup?Yes, I researched many options for three partition dual boot set ups. After many trials and tribulations, there is a simple method that I have used on multiple MBPs.
1. Run Boot Camp Assistant, as per the Boot Camp Installation and Setup Guide. Once you have Mac OS X and Windows 7 set up, check the partitions and back them up (with Time Machine, and Winclone).
2. Get iPartition, and resize the Mac and Windows partitions to what you want, say 100GB each, and set up your other partitions to the size you want. I put mine "after" the Windows partition, at the end of the disk, and have had no problems. It takes a few minutes to create the bootable CD for iPartition, but you get everything you need to do so from Coriolis Systems. You will need your Mac OS X installl disc.
3. Install Paragon's HFS+ for Windows and NTFS for Mac, and everybody can read and write everything.
4. I have both Time Machine and Norton 360 back up the Data partitions, just in case -- to an external drive, of course.
You can boot to either OS and access any partition. -
Can't create Windows partition with BootCamp
When I try to create Windows partition with BootCamp I get the same error, no matter what size the partition is set to : "This disk cannot be partitioned because some files cannot be moved" and then keeps giving instructions about formatting the disk as a single partition (after performing a full backup I assume), and then try using BootCamp again.
Does that mean I have to erase and reinstall OS X to be able to do that ? Cause I just did that and I have the same problem. I'm not reinstalling again, it took me an entire day to reinstall all my softwares and run all the updates... Plus it reminds me too much of my Windows days... I'm not supposed to do that on a Mac anyway
Back to the topic... are there any services that need to be stopped during partitioning ? Any software installed that could prevent that ?
What could cause this problem ?Weird thing is I had no trouble making a partition using BootCamp before I restored OS X, and I had the same softwares installed... or maybe I did that before I installed some of them... Could this be related to any software I have installed ?
And judging by your suggestions I would say that the "iDefrag" option is the only way out of the two to make this work. Sounds a little extreme if you ask me... What happens on the first attempt of creating the partition that would make me choose backing up and/or defragmenting ? ... You don't have to answer that if it's too complicated...
Same thing happened on my other MBP... so as far as I'm concerned, I can only restore one more time and try to make the partition right after first startup. If that fails, then it means it could have been software related... Or maybe restore again, install one more software/utility I use and try partitioning again... and again, and again, until it fails...that way I'll know what caused it...
Just kidding...
Thank you for the suggestions anyway ! -
Creating Partitions in Existing tables with Data
Hello everyone,
I want to know what the best way of creating partitions, in tables having data, is .. ???
thanks
Rossy RocsThere are two ways :
1a Create a new Partitioned Table
1b Copy data from the existing table to the new table
1c Create Indexes
1d Rename old table
1e Rename new table
OR
2 Use DBMS_REDEFINITION
See
http://www.oracle-base.com/articles/misc/PartitioningAnExistingTable.php
Hemant K Chitale -
Creating Partition using EssCmd
Is there any one who has created partition using EssCmd, I could not find any command in EssCmd that does it. I know that you it can be done using MaxL but I do not want to use it.Any help would be highly appreciated.Thanks in advance.ThanksYousuf
MaxL is not as stable and mature as esscmd. Many features lack documentation or have restrictions (like partitioning). With the new application manager using maxl features (for connection displaying, etc.) we had very unpleasant moments as we had to rely on them.But none the less, give it some time and one or two patch levels and it will grow to it's use.Tom
-
I've lost the use of Appleworks by upgrading to 10.9.2.
Is it possible to partition the internal hard drive of my MacBook Pro and install an older Mac OS (10.6.8) on the second partition with OS 10.9.2 on the other? I'd like to be able to boot to the older OS when I need Appleworks and few other applications that aren't available on OS 10.9.2.
Any suggestions?
Thank you for your help.Hello again, WZZZ,
Here's an update. I was successful in creating two partitions on my internal drive, and in installing OS 10.6.6 on the second partition, as per your guidence. I now have it up to 10.6.8 with all the security updates and AppleWorks. A great thing.
Some thoughts:
• The partitioning had one hitch; it failed at first. But once I "repaired" the disc with Disc Utility the partitioning went thru.
• The partitioning took a long time in 'resizing the partition.' A few hours I think it was. Lots of progress bar watching.
• If I had it to do again, I'd size the two partitions differently. My original data was occupying about 230 Gb of the 320 Gb disc. I made the new partitions share the space, about 230 and 75Gb. That left very little available space for the main disc. I ought to have put some breathing room in there. As it is, it's an incentive to clean up all those files, especially all those iTunes files. I now have about 10% of available space there and mean to continue deleting.
So, all in all a good project that got me where I wanted to go. Thank you for your help.
Appreciatively,
wallah -
Can't boot into Windows after splitting Mac partition with Disk Utility
Hi everyone,
I installed Windows 8 with BOOTCAMP, creating a large 871 GB partition with a smaller 127 GB partition for Windows. After installing Windows, I then went back to Disk Utility to shrink the Mac partition and add two new partitions, one for storage and another blank, hoping to use it to install Linux into one day.
I did that, and now Windows doesn't boot. A Windows blue screen tells me I need to use the Windows DVD to repair it.
I tried to use Disk Utility to delete the two new partitions I made and grow the Mac partition back to the max size of 871 GB. But it doesn't let me do this. The Disk Utility log doesn't report an error and thinks it worked but the partition stays the same size. However if I make the partition a little smaller, like 870 GB then it works. I'm wondering if the Recovery partition is hiding there and preventing me from fully expanding the Mac partition.
What can I do?
Here's what I get if I type in sudo gpt -r -vv show disk0:
Code:
gpt show: disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168 gpt show: disk0: Suspicious MBR at sector 0 gpt show: disk0: Pri GPT at sector 1 gpt show: disk0: Sec GPT at sector 1953525167 start size index contents 0 1 MBR 1 1 Pri GPT header 2 32 Pri GPT table 34 6 40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B 409640 1701278816 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC 1701688456 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC 1702957992 1846360 1704804352 248002560 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 1952806912 718223 1953525135 32 Sec GPT table 1953525167 1 Sec GPT header
Here's what I get if I type sudo fdisk /dev/rdisk0:
Code:
Disk: /dev/rdisk0 geometry: 121601/255/63 [1953525168 sectors] Signature: 0xAA55 Starting Ending #: id cyl hd sec - cyl hd sec [ start - size] ------------------------------------------------------------------------ 1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID> 2: AF 1023 254 63 - 1023 254 63 [ 409640 - 1701278816] HFS+ 3: AB 1023 254 63 - 1023 254 63 [1701688456 - 1269536] Darwin Boot *4: 07 1023 254 63 - 1023 254 63 [1704804352 - 248002560] HPFS/QNX/AUX
Here's what I get with gdisk:
Code:
Disk /dev/rdisk0: 1953525168 sectors, 931.5 GiB Logical sector size: 512 bytes Disk identifier (GUID): 6075110F-7CEF-4604-85EE-6231B850E2AE Partition table holds up to 128 entries First usable sector is 34, last usable sector is 1953525134 Partitions will be aligned on 8-sector boundaries Total free space is 2564589 sectors (1.2 GiB) Number Start (sector) End (sector) Size Code Name 1 40 409639 200.0 MiB EF00 EFI System Partition 2 409640 1701688455 811.2 GiB AF00 1 TB APPLE HDD HTS54101 3 1701688456 1702957991 619.9 MiB AB00 Recovery HD 4 1704804352 1952806911 118.3 GiB 0700 BOOTCAMPOkay, the code I typed didn't display properly in the forum. Let me try again.
Here's what I get when I type
sudo gpt -r -vv show disk0:
gpt show: disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168
gpt show: disk0: Suspicious MBR at sector 0
gpt show: disk0: Pri GPT at sector 1
gpt show: disk0: Sec GPT at sector 1953525167
start size index contents
0 1 MBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 1701278816 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
1701688456 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
1702957992 1846360
1704804352 248002560 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
1952806912 718223
1953525135 32 Sec GPT table
1953525167 1 Sec GPT header
And when I type fdisk /dev/rdisk0 I get:
Disk: /dev/rdisk0 geometry: 121601/255/63 [1953525168 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID>
2: AF 1023 254 63 - 1023 254 63 [ 409640 - 1701278816] HFS+
3: AB 1023 254 63 - 1023 254 63 [1701688456 - 1269536] Darwin Boot
*4: 07 1023 254 63 - 1023 254 63 [1704804352 - 248002560] HPFS/QNX/AUX
Kappy,
I can boot into OS X just fine so if possible, I'd like to avoid reformatting everything. If you know of a way I can add more than 2 partitions with OS X and Boot Camp, please let me know. As far as I know, rEFInd can recognize more than two partitions, but I don't think it can edit partitions on a GPT / hybrid MBR system. Or am I wrong? -
Hello.
During developing Domain Index for Oracle 11.2.0.1.0 (problem also appears in 12с) i was faced with misunderstanding of parameter types of function
ODCIIndexInsert in case of creating indextype WITH ARRAY DML option
According to Oracle documentation
http://docs.oracle.com/cd/E11882_01/appdev.112/e10765/ext_idx_ref.htm#i76892
In case of WITH ARRAY DML option Oracle will invoke ODCIIndexInsert with following signature
FUNCTION ODCIIndexInsert(
ia ODCIIndexInfo,
ridlist ODCIRidList,
newvallist varray_of_column_type,
env ODCIEnv)
RETURN NUMBER
In my case indexed column has datatype NUMBER so i defined varray_of_column_type as SYS.ODCINumberList
STATIC FUNCTION ODCIIndexInsert(ia in sys.ODCIIndexInfo, ridlist in sys.ODCIRidList, newvallist in sys.ODCINumberList, env in SYS.ODCIEnv) RETURN NUMBER
Indextype was created as
CREATE INDEXTYPE test_index_type
FOR
test_eq(number, number)
USING index_methods
WITH ARRAY DML(number, sys.ODCINumberList)
WITH LOCAL RANGE PARTITION
WITH SYSTEM MANAGED STORAGE TABLES;
or
CREATE INDEXTYPE test_index_type
FOR
test_eq(number, number)
USING index_methods
WITH ARRAY DML
WITH LOCAL RANGE PARTITION
WITH SYSTEM MANAGED STORAGE TABLES;
(problem occurs in all cases)
CREATE TABLE test_table (id NUMBER (19,0));
CREATE INDEX test_index ON test_table(id) INDEXTYPE IS test_index_type;
When attempting to insert data in the table
insert into test_table values (1);
oracle raise exception
Error starting at line 53 in command:
insert into test_table values (1)
Error at Command Line:53 Column:1
Error report:
SQL Error: ORA-29925: cannot execute SCOTT.INDEX_METHODS.ODCIINDEXINSERT
ORA-06553: PLS-306: wrong number or types of arguments in call to 'ODCIINDEXINSERT'
ORA-06553: PLS-306: wrong number or types of arguments in call to 'ODCIINDEXINSERT'
29925. 00000 - "cannot execute %s"
*Cause: The specified function does not exist or does not have an
appropriate signature.
*Action: Implement the function with the appropriate signature.
So my question is.
Is it normal behavior of oracle (according to documentation)?
What is correct signature of ODCIIndexInsert function in case of INDEXTYPE creation with 'WITH ARRAY DML' option and fact that indexed column has NUMBER datatype?
By the way if i define indextype without 'WITH ARRAY DML' option signature is clear, and working. But this approach doesn't satisfies our performance needs.
Also if i define index type with option 'WITH ARRAY DML WITHOUT COLUMN DATA' and use signature
static function ODCIIndexInsert(ia sys.odciindexinfo, ridlist sys.odciridlist, env sys.ODCIEnv) return number
Everything works too. But this approach doesn't satisfies our business needs.
Is it a way to define ODCIIndexInsert parameter types (in case of indexing number column) so that batch inserting works according to documentation ?
FUNCTION ODCIIndexInsert(
ia ODCIIndexInfo,
ridlist ODCIRidList,
newvallist varray_of_column_type,
env ODCIEnv)
I am attaching full sql script to recreate environment and reproduce the problem.
Type definition:
CREATE OR REPLACE TYPE index_methods AS OBJECT
step number,
STATIC FUNCTION ODCIGetInterfaces(ifclist OUT SYS.ODCIObjectList) RETURN NUMBER,
STATIC FUNCTION ODCIIndexCreate (ia SYS.ODCIIndexInfo, parms VARCHAR2, env SYS.ODCIEnv) RETURN NUMBER,
STATIC FUNCTION ODCIIndexAlter (ia sys.ODCIIndexInfo, parms IN OUT VARCHAR2, altopt number, env sys.ODCIEnv) RETURN NUMBER,
STATIC FUNCTION ODCIIndexDrop(ia SYS.ODCIIndexInfo, env SYS.ODCIEnv) RETURN NUMBER,
STATIC FUNCTION ODCIIndexExchangePartition(ia SYS.ODCIIndexInfo, ia1 SYS.ODCIIndexInfo, env SYS.ODCIEnv) RETURN NUMBER,
STATIC FUNCTION ODCIIndexUpdPartMetadata(ia sys.ODCIIndexInfo, palist sys.ODCIPartInfoList, env sys.ODCIEnv) RETURN NUMBER,
STATIC FUNCTION ODCIIndexInsert(ia in sys.ODCIIndexInfo, ridlist in sys.ODCIRidList, newvallist in sys.ODCINumberList, env in SYS.ODCIEnv) RETURN NUMBER,
STATIC FUNCTION ODCIIndexDelete(ia SYS.ODCIIndexInfo, rid VARCHAR2, oldval number, env SYS.ODCIEnv) RETURN NUMBER,
STATIC FUNCTION ODCIIndexUpdate(ia SYS.ODCIIndexInfo, rid VARCHAR2, oldval number, newval number, env SYS.ODCIEnv) RETURN NUMBER,
STATIC FUNCTION ODCIIndexStart(sctx IN OUT index_methods, ia SYS.ODCIIndexInfo,
op SYS.ODCIPredInfo, qi sys.ODCIQueryInfo, strt number, stop number, cmpval number, env SYS.ODCIEnv) RETURN NUMBER,
MEMBER FUNCTION ODCIIndexFetch(self IN OUT index_methods, nrows NUMBER, rids OUT SYS.ODCIridlist, env SYS.ODCIEnv) RETURN NUMBER,
MEMBER FUNCTION ODCIIndexClose(self IN index_methods, env SYS.ODCIEnv) RETURN NUMBER
CREATE OR REPLACE TYPE BODY index_methods IS
STATIC FUNCTION ODCIGetInterfaces(ifclist OUT sys.ODCIObjectList) RETURN NUMBER IS
BEGIN
ifclist := sys.ODCIObjectList(sys.ODCIObject('SYS','ODCIINDEX2'));
RETURN ODCIConst.Success;
END ODCIGetInterfaces;
STATIC FUNCTION ODCIIndexCreate (ia sys.ODCIIndexInfo, parms VARCHAR2, env sys.ODCIEnv) RETURN NUMBER IS
BEGIN
RETURN ODCIConst.Success;
END ODCIIndexCreate;
STATIC FUNCTION ODCIIndexDrop(ia sys.ODCIIndexInfo, env sys.ODCIEnv) RETURN NUMBER IS
BEGIN
RETURN ODCIConst.Success;
END ODCIIndexDrop;
STATIC FUNCTION ODCIIndexAlter (
ia sys.ODCIIndexInfo,
parms IN OUT VARCHAR2,
altopt NUMBER,
env sys.ODCIEnv)
RETURN NUMBER IS
BEGIN
RETURN ODCIConst.Success;
END ODCIIndexAlter;
STATIC FUNCTION ODCIIndexUpdPartMetadata(
ia sys.ODCIIndexInfo,
palist sys.ODCIPartInfoList,
env sys.ODCIEnv)
RETURN NUMBER IS
BEGIN
RETURN ODCIConst.Success;
END ODCIIndexUpdPartMetadata;
STATIC FUNCTION ODCIIndexExchangePartition(
ia sys.ODCIIndexInfo,
ia1 sys.ODCIIndexInfo,
env sys.ODCIEnv)
RETURN NUMBER IS
BEGIN
RETURN ODCIConst.Success;
END ODCIIndexExchangePartition;
STATIC FUNCTION ODCIIndexInsert(
ia sys.ODCIIndexInfo,
ridlist sys.ODCIRidList,
newvallist sys.ODCINumberList,
env sys.ODCIEnv)
RETURN NUMBER IS
BEGIN
return ODCIConst.Success;
END;
STATIC FUNCTION ODCIIndexDelete(
ia SYS.ODCIIndexInfo,
rid VARCHAR2,
oldval number,
env SYS.ODCIEnv)
RETURN NUMBER IS
BEGIN
return ODCIConst.Success;
END;
STATIC FUNCTION ODCIIndexUpdate(
ia SYS.ODCIIndexInfo,
rid VARCHAR2,
oldval number,
newval number,
env SYS.ODCIEnv)
RETURN NUMBER AS
BEGIN
return ODCIConst.Success;
END;
STATIC FUNCTION ODCIIndexStart(
sctx IN OUT index_methods,
ia SYS.ODCIIndexInfo,
op SYS.ODCIPredInfo,
qi sys.ODCIQueryInfo,
strt number,
stop number,
cmpval number,
env SYS.ODCIEnv)
RETURN NUMBER AS
BEGIN
sctx := index_methods(1);
return ODCIConst.Success;
END;
MEMBER FUNCTION ODCIIndexFetch(
self IN OUT index_methods,
nrows NUMBER,
rids OUT SYS.ODCIridlist,
env SYS.ODCIEnv)
RETURN NUMBER AS
BEGIN
return ODCIConst.Success;
END;
MEMBER FUNCTION ODCIIndexClose(self IN index_methods, env SYS.ODCIEnv) RETURN NUMBER AS
BEGIN
return ODCIConst.Success;
END;
end;
Problem workaround:
--drop function test_eq_fun;
CREATE FUNCTION test_eq_fun(a number, b number) RETURN NUMBER AS
BEGIN
IF a = b then
RETURN 1;
ELSE
RETURN 0;
END IF;
END;
--drop operator test_eq;
CREATE OPERATOR test_eq
BINDING (number, number) RETURN NUMBER
USING test_eq_fun;
--drop indextype test_index_type;
CREATE INDEXTYPE test_index_type
FOR
test_eq(number, number)
USING index_methods
WITH ARRAY DML(number, sys.ODCINumberList)
WITH LOCAL RANGE PARTITION
WITH SYSTEM MANAGED STORAGE TABLES;
CREATE INDEXTYPE test_index_type
FOR
test_eq(number, number)
USING index_methods
WITH ARRAY DML
WITH LOCAL RANGE PARTITION
WITH SYSTEM MANAGED STORAGE TABLES;
--drop table test_table;
CREATE TABLE test_table (id NUMBER (19,0));
CREATE INDEX test_index ON test_table(id) INDEXTYPE IS test_index_type;
insert into test_table values (1);I get single for 1 row and batch for 2 or more rows in the following simplified simulation.
SCOTT@orcl12c> DESC SYS.ODCINUMBERLIST
SYS.ODCINUMBERLIST VARRAY(32767) OF NUMBER
SCOTT@orcl12c> CREATE OR REPLACE TYPE index_methods AS OBJECT
2 (
3 step number,
4 STATIC FUNCTION ODCIGetInterfaces(ifclist OUT SYS.ODCIObjectList) RETURN NUMBER,
5 STATIC FUNCTION ODCIIndexCreate (ia SYS.ODCIIndexInfo, parms VARCHAR2, env SYS.ODCIEnv) RETURN NUMBER,
6 STATIC FUNCTION ODCIIndexAlter (ia sys.ODCIIndexInfo, parms IN OUT VARCHAR2, altopt number, env sys.ODCIEnv) RETURN NUMBER,
7 STATIC FUNCTION ODCIIndexDrop(ia SYS.ODCIIndexInfo, env SYS.ODCIEnv) RETURN NUMBER,
8 STATIC FUNCTION ODCIIndexExchangePartition(ia SYS.ODCIIndexInfo, ia1 SYS.ODCIIndexInfo, env SYS.ODCIEnv) RETURN NUMBER,
9 STATIC FUNCTION ODCIIndexUpdPartMetadata(ia sys.ODCIIndexInfo, palist sys.ODCIPartInfoList, env sys.ODCIEnv) RETURN NUMBER,
10 STATIC FUNCTION ODCIIndexInsert(ia in sys.ODCIIndexInfo, rid in VARCHAR2, newval in NUMBER, env in SYS.ODCIEnv) RETURN NUMBER,
11 STATIC FUNCTION ODCIIndexInsert(ia in sys.ODCIIndexInfo, ridlist in sys.ODCIRidList, newvallist in your_type, env in SYS.ODCIEnv) RETURN NUMBER,
12 STATIC FUNCTION ODCIIndexDelete(ia SYS.ODCIIndexInfo, rid VARCHAR2, oldval number, env SYS.ODCIEnv) RETURN NUMBER,
13 STATIC FUNCTION ODCIIndexUpdate(ia SYS.ODCIIndexInfo, rid VARCHAR2, oldval number, newval number, env SYS.ODCIEnv) RETURN NUMBER,
14 STATIC FUNCTION ODCIIndexStart(sctx IN OUT index_methods, ia SYS.ODCIIndexInfo,
15 op SYS.ODCIPredInfo, qi sys.ODCIQueryInfo, strt number, stop number, cmpval number, env SYS.ODCIEnv) RETURN NUMBER,
16 MEMBER FUNCTION ODCIIndexFetch(self IN OUT index_methods, nrows NUMBER, rids OUT SYS.ODCIridlist, env SYS.ODCIEnv) RETURN NUMBER,
17 MEMBER FUNCTION ODCIIndexClose(self IN index_methods, env SYS.ODCIEnv) RETURN NUMBER
18 );
19 /
Type created.
SCOTT@orcl12c> CREATE OR REPLACE TYPE BODY index_methods IS
2 STATIC FUNCTION ODCIGetInterfaces(ifclist OUT sys.ODCIObjectList) RETURN NUMBER IS
3 BEGIN
4 ifclist := sys.ODCIObjectList(sys.ODCIObject('SYS','ODCIINDEX2'));
5 RETURN ODCIConst.Success;
6 END ODCIGetInterfaces;
7
8 STATIC FUNCTION ODCIIndexCreate (ia sys.ODCIIndexInfo, parms VARCHAR2, env sys.ODCIEnv) RETURN NUMBER IS
9 BEGIN
10 RETURN ODCIConst.Success;
11 END ODCIIndexCreate;
12
13 STATIC FUNCTION ODCIIndexDrop(ia sys.ODCIIndexInfo, env sys.ODCIEnv) RETURN NUMBER IS
14 BEGIN
15 RETURN ODCIConst.Success;
16 END ODCIIndexDrop;
17
18 STATIC FUNCTION ODCIIndexAlter (
19 ia sys.ODCIIndexInfo,
20 parms IN OUT VARCHAR2,
21 altopt NUMBER,
22 env sys.ODCIEnv)
23 RETURN NUMBER IS
24 BEGIN
25 RETURN ODCIConst.Success;
26 END ODCIIndexAlter;
27
28 STATIC FUNCTION ODCIIndexUpdPartMetadata(
29 ia sys.ODCIIndexInfo,
30 palist sys.ODCIPartInfoList,
31 env sys.ODCIEnv)
32 RETURN NUMBER IS
33 BEGIN
34 RETURN ODCIConst.Success;
35 END ODCIIndexUpdPartMetadata;
36
37 STATIC FUNCTION ODCIIndexExchangePartition(
38 ia sys.ODCIIndexInfo,
39 ia1 sys.ODCIIndexInfo,
40 env sys.ODCIEnv)
41 RETURN NUMBER IS
42 BEGIN
43 RETURN ODCIConst.Success;
44 END ODCIIndexExchangePartition;
45
46 STATIC FUNCTION ODCIIndexInsert(
47 ia sys.ODCIIndexInfo,
48 rid VARCHAR2,
49 newval NUMBER,
50 env sys.ODCIEnv)
51 RETURN NUMBER IS
52 BEGIN
53 dbms_output.put_line ('single');
54 return ODCIConst.Success;
55 END;
56
57 STATIC FUNCTION ODCIIndexInsert(
58 ia sys.ODCIIndexInfo,
59 ridlist sys.ODCIRidList,
60 newvallist your_type,
61 env sys.ODCIEnv)
62 RETURN NUMBER IS
63 BEGIN
64 dbms_output.put_line ('batch');
65 return ODCIConst.Success;
66 END;
67
68 STATIC FUNCTION ODCIIndexDelete(
69 ia SYS.ODCIIndexInfo,
70 rid VARCHAR2,
71 oldval number,
72 env SYS.ODCIEnv)
73 RETURN NUMBER IS
74 BEGIN
75 return ODCIConst.Success;
76 END;
77
78 STATIC FUNCTION ODCIIndexUpdate(
79 ia SYS.ODCIIndexInfo,
80 rid VARCHAR2,
81 oldval number,
82 newval number,
83 env SYS.ODCIEnv)
84 RETURN NUMBER AS
85 BEGIN
86 return ODCIConst.Success;
87 END;
88
89 STATIC FUNCTION ODCIIndexStart(
90 sctx IN OUT index_methods,
91 ia SYS.ODCIIndexInfo,
92 op SYS.ODCIPredInfo,
93 qi sys.ODCIQueryInfo,
94 strt number,
95 stop number,
96 cmpval number,
97 env SYS.ODCIEnv)
98 RETURN NUMBER AS
99 BEGIN
100 sctx := index_methods(1);
101 return ODCIConst.Success;
102 END;
103
104 MEMBER FUNCTION ODCIIndexFetch(
105 self IN OUT index_methods,
106 nrows NUMBER,
107 rids OUT SYS.ODCIridlist,
108 env SYS.ODCIEnv)
109 RETURN NUMBER AS
110 BEGIN
111 return ODCIConst.Success;
112 END;
113
114 MEMBER FUNCTION ODCIIndexClose(self IN index_methods, env SYS.ODCIEnv) RETURN NUMBER AS
115 BEGIN
116 return ODCIConst.Success;
117 END;
118 end;
119 /
Type body created.
SCOTT@orcl12c> CREATE FUNCTION test_eq_fun(a number, b number) RETURN NUMBER AS
2 BEGIN
3 IF a = b then
4 RETURN 1;
5 ELSE
6 RETURN 0;
7 END IF;
8 END;
9 /
Function created.
SCOTT@orcl12c> CREATE OPERATOR test_eq
2 BINDING (number, number) RETURN NUMBER
3 USING test_eq_fun
4 /
Operator created.
SCOTT@orcl12c> CREATE INDEXTYPE test_index_type
2 FOR
3 test_eq(number, number)
4 USING index_methods
5 WITH ARRAY DML(number, your_type)
6 WITH LOCAL RANGE PARTITION
7 WITH SYSTEM MANAGED STORAGE TABLES
8 /
Indextype created.
SCOTT@orcl12c> CREATE TABLE test_table (id NUMBER (19,0))
2 /
Table created.
SCOTT@orcl12c> CREATE INDEX test_index ON test_table(id) INDEXTYPE IS test_index_type
2 /
Index created.
SCOTT@orcl12c> insert into test_table values (1)
2 /
single
1 row created.
SCOTT@orcl12c> insert into test_table
2 select 2 from dual union all
3 select 3 from dual
4 /
batch
2 rows created.
SCOTT@orcl12c> insert into test_table select deptno from dept
2 /
batch
4 rows created.
SCOTT@orcl12c> insert into test_table select object_id from user_objects
2 /
batch
34 rows created.
SCOTT@orcl12c> -
Disk utility-erasing a HD, creating partition map hanging
Hi all,
I have been given an external Maxtor USB drive, 120 BG, with the need to securely wipe the old information on it. I have used Disk Utility, and zeroed the HD with a 7 times pass. This took 17 hours, and it moved to the "create partition map" stage. It's been doing that for 24 hours and still the progress bar is rolling. All other options are greyed out and nothing can be selected in Disk Utility. I have chosen to format it in Mac OS X Extended, Journaled. There was about 45 GB data on the drive.
Would this amount of time be expected, or has something gone wrong? I hesitate to force quit DU, in case I render the drive unusable. If I do that or shut down the computer, what's likely to happen to the HD? Will I be able to mount it again and start over. Any tips much appreciated.
FrancesHi Frances,
17 hours for the 7-times pass is normal (and usually completely unnecessary unless you work for the CIA). However, the hang at the "create partition map" stage is not normal. I would interrupt it and reformat the drive, since the zeroing is finished anyway.
If this answered your question please consider granting some stars: Why reward points? -
Where in a lion install disc made from the installer can I find a bootable file with disk utilities?
I downloaded lion a few hours ago and installed.
I have 4 large hardrives (1.5TB) arranged in 8 partitions to allow me to work on a varied group of projects. I have some projects that need to be worked on with software running under Tiger, some with software that runs under leopard, some with snow leopard, and now Lion. I own multiple copies of software and multiple user pack system install discs.
On a regular basis, I back up chunks of work on projects to external discs, and special backup areas on one of my drives. I don't like using time machine because I am running many operating environments on my mac pro and I don't ever want to be tied to one operating environment for important functionality, and I want to maximize the open space on my hard drives.
Several partitions involve large video files. I am working on them in various versions of final cut, premiere and imovie. Because I have to use the same software versions my different clients are running, I don't want to move all the files " up" to a modern version. It would be professional suicide to stop accommodating my various clients. I say this to try to head off being told to make my clients upgrade. There are too many different clients and they are not going to replace all their equipment.
On these volumes with video files, I often fill them up and copy off what I need to backup before I erase and do a clean install. I also run VM Fusion and windows XP. I absolutely do not want to have a Recovery HD partition left on the drive when I erase or influencing the other partions using different OS versions on that same drive.
Is there a bootable disc on the installer disk I just made? Can I use the disk utilities to do a low level erase on the lion volume that will remove the recovery partition?
Can I go back to booting from Snow Leopard and erasing the Recovery partition with the drive partition that way? Will the Snow Leopard utility take out the Lion HD recovery partition?
I am used to erasing my drives and rebuilding my machine and I believe it is the right way to use my multiple drives in my workflow. Now that I've got this invisible recovery partition, can you help me remove it and create a bootable disc that includes disk utilities?I assume the unix pdisk command will show you want is going on.
You may not have a big worry. There have always been a lot of hidden partitions. Disk Utility under 10.4.11 reports this drive has three (my now report four ) partitions, when pdisk reports that there are 15.
Macintosh-HD -> Applications -> Utilities -> Terminal
Press return when done typing sudo pdisk -l
-l include a lower case L
The sudo command will ask for your administration password. No characters will appear when typing your password. Press return when done typing. sudo stands for super user do. It's just like root. Be careful.
mac $ sudo pdisk -l
Password:
Partition map (with 512 byte blocks) on '/dev/rdisk0'
#: type name length base ( size )
1: Apple_partition_map Apple 63 @ 1
2: Apple_Driver43*Macintosh 56 @ 64
3: Apple_Driver43*Macintosh 56 @ 120
4: Apple_Driver_ATA*Macintosh 56 @ 176
5: Apple_Driver_ATA*Macintosh 56 @ 232
6: Apple_FWDriver Macintosh 512 @ 288
7: Apple_Driver_IOKit Macintosh 512 @ 800
8: Apple_Patches Patch Partition 512 @ 1312
9: Apple_Bootstrap untitled 1954 @ 149319048
10: Apple_HFS Apple_HFS_Untitled_1 2254440 @ 263968 ( 1.1G)
11: Apple_UNIX_SVR2 untitled 6617188 @ 149321002 ( 3.2G)
12: Apple_HFS Apple_HFS_Untitled_2 146538496 @ 2780552 ( 69.9G)
13: Apple_UNIX_SVR2 swap 363298 @ 155938190 (177.4M)
14: Apple_Free Extra 262144 @ 1824 (128.0M)
15: Apple_Free Extra 262144 @ 2518408 (128.0M)
Device block size=512, Number of Blocks=156301488 (74.5G)
DeviceType=0x0, DeviceId=0x0
Drivers-
1: 23 @ 64, type=0x1
2: 36 @ 120, type=0xffff
3: 21 @ 176, type=0x701
4: 34 @ 232, type=0xf8ff -
windows 8 installation gets stuck during create partition step in bootcamp. I tried to restart the bootcamp with same results. I have given it more than 6 hrs for last 3 times but I was able to go past this step previously where I got stuck during registering windows8.
Hi,
According to your description, it seems that your all Windows 8.1 computers connect to network via normal wireless network.
Did you have wireless router for them?
Please delete this adhoc, then check if these computer could connect to network.
If no, follow below guide to create and connect to adhoc :
Create adhoc in Windows 8.1
http://tipsandtricksforum.com/thread-210.html
connect to adhoc with Windows 8.1
http://social.technet.microsoft.com/Forums/windows/en-US/56ff83ff-1f15-4fc1-aa37-6651340d46fa/windows-81-connecting-to-ad-hoc-networks
Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Karen Hu
TechNet Community Support
Maybe you are looking for
-
How to open a panel tabbed window using a button present in the same page
below is my jspx page where i have two buttons and two panel tabs. I want to open respective panel tabs using respective buttons: <?xml version='1.0' encoding='UTF-8'?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://
-
I have a Mac desktop, purchased in 2007. We upgraded last year to Snow Leopard. It has been slow for a few days, and yesterday wouldn't go past the gray screen. Tried booting in recovery with no success, same for safe mode. Even tried fsck -fy. Event
-
Move from Internal table to Internal table
Hi Guys, I have two internal table, First one with fields A, B, C, D, E Second one with A, E, D, C, B I have to fill the second internal table from first internal table. I dont want to use loop and do it(I am aware of doing it)... I tried using m
-
Cannot use DDNS service in china!
I am use WRT300N V1(Firmware Version: v1.03.6) wireless router in china, and use China Telecom ADSL Broadband service, I want to use DDNS service but never connet to DynDNS.org, please help me to solve the problem,many thanks. Joe
-
Finding base table for a field in a structure !! urgent
i need to find out where is BUDAT field being populated in the 2lis_04_p_arbpl extractor. When i see where this field is coming from it shows MCAFVG which is a structure. i need to use this field in user exit and need to know which table is it coming