If sharing is not available, you should get this error:
ORA-00439: feature not enabled: Partitioning
So you can write PL / SQL in your script to create the table as follows:
declare
no_partioning exception;
pragma exception_init (no_partioning, -439);
begin
execute immediate 'CREATE TABLE mytable ...';
exception
when no_partioning then
execute immediate 'CREATE TABLE mytable ...';
end;
/
source
share